refac
This commit is contained in:
1 parent
66015bb341
commit
c2ff73c3e1
2 files changed
+28
-4
No files matched your search
@@ -84,7 +84,12 @@
|
||||
}
|
||||
|
||||
if (floatingButtonsElement) {
|
||||
floatingButtonsElement.closeHandler();
|
||||
// check if closeHandler is defined
|
||||
|
||||
if (typeof floatingButtonsElement?.closeHandler === 'function') {
|
||||
// call the closeHandler function
|
||||
floatingButtonsElement?.closeHandler();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user