@simonbackx/vue-app-navigation 2.12.0 → 2.12.1
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/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2616,7 +2616,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2616
2616
|
(_a = pop(options)) == null ? void 0 : _a.catch(console.error);
|
|
2617
2617
|
};
|
|
2618
2618
|
const onClick = (event) => {
|
|
2619
|
-
if (mainContent.value && event.target && !mainContent.value.contains(event.target) && (event.target.isConnected
|
|
2619
|
+
if (mainContent.value && event.target && !mainContent.value.contains(event.target) && (event.target.isConnected || document.body.contains(event.target))) {
|
|
2620
2620
|
dismiss().catch(console.error);
|
|
2621
2621
|
event.preventDefault();
|
|
2622
2622
|
}
|