This commit is contained in:
Timothy Jaeryang Baek
2025-03-29 14:59:03 -07:00
parent 66015bb341
commit c2ff73c3e1
2 changed files with 28 additions and 4 deletions

View File

@@ -84,7 +84,12 @@
}
if (floatingButtonsElement) {
floatingButtonsElement.closeHandler();
// check if closeHandler is defined
if (typeof floatingButtonsElement?.closeHandler === 'function') {
// call the closeHandler function
floatingButtonsElement?.closeHandler();
}
}
};