@inizioevoke/astro-core 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -212,12 +212,13 @@ function getAnimationDuration(element: HTMLElement = document.body) {
|
|
|
212
212
|
document.addEventListener('DOMContentLoaded', (e) => {
|
|
213
213
|
bindTriggers();
|
|
214
214
|
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
let overlay = getOverlay();
|
|
216
|
+
if (!overlay) {
|
|
217
|
+
overlay = document.createElement('div');
|
|
217
218
|
overlay.classList.add(CSS_OVERLAY);
|
|
218
|
-
overlay.addEventListener('click', () => {
|
|
219
|
-
hideModals();
|
|
220
|
-
}, { passive: true });
|
|
221
219
|
document.body.append(overlay);
|
|
222
220
|
}
|
|
221
|
+
overlay.addEventListener('click', () => {
|
|
222
|
+
hideModals();
|
|
223
|
+
}, { passive: true });
|
|
223
224
|
}, { passive: true });
|