@simonbackx/vue-app-navigation 2.12.0 → 2.13.0

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1690,13 +1690,13 @@ const _sfc_main$4 = defineComponent({
1690
1690
  }
1691
1691
  }
1692
1692
  });
1693
- const _hoisted_1$3 = {
1693
+ const _hoisted_1$4 = {
1694
1694
  key: 0,
1695
1695
  class: "navigation-controller"
1696
1696
  };
1697
1697
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1698
1698
  const _component_FramedComponent = resolveComponent("FramedComponent");
1699
- return _ctx.mainComponent ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
1699
+ return _ctx.mainComponent ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
1700
1700
  createVNode(Transition, {
1701
1701
  css: false,
1702
1702
  onBeforeEnter: _ctx.beforeEnter,
@@ -2247,7 +2247,7 @@ function useUrl() {
2247
2247
  }
2248
2248
  };
2249
2249
  }
2250
- const _hoisted_1$2 = { class: "stack-component" };
2250
+ const _hoisted_1$3 = { class: "stack-component" };
2251
2251
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2252
2252
  __name: "StackComponent",
2253
2253
  emits: ["returnToHistoryIndex"],
@@ -2323,7 +2323,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2323
2323
  children
2324
2324
  });
2325
2325
  return (_ctx, _cache) => {
2326
- return openBlock(), createElementBlock("div", _hoisted_1$2, [
2326
+ return openBlock(), createElementBlock("div", _hoisted_1$3, [
2327
2327
  createVNode(TransitionGroup, {
2328
2328
  name: "show",
2329
2329
  duration: 300
@@ -2343,6 +2343,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2343
2343
  };
2344
2344
  }
2345
2345
  });
2346
+ const _hoisted_1$2 = { class: "modal-stack-component" };
2346
2347
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2347
2348
  __name: "ModalStackComponent",
2348
2349
  props: {
@@ -2422,7 +2423,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2422
2423
  replace
2423
2424
  });
2424
2425
  return (_ctx, _cache) => {
2425
- return openBlock(), createElementBlock("div", null, [
2426
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
2426
2427
  createVNode(NavigationController, {
2427
2428
  ref_key: "navigationController",
2428
2429
  ref: navigationController,
@@ -2616,7 +2617,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2616
2617
  (_a = pop(options)) == null ? void 0 : _a.catch(console.error);
2617
2618
  };
2618
2619
  const onClick = (event) => {
2619
- if (mainContent.value && event.target && !mainContent.value.contains(event.target) && (event.target.isConnected && document.body.contains(event.target))) {
2620
+ if (mainContent.value && event.target && !mainContent.value.contains(event.target) && (event.target.isConnected || document.body.contains(event.target))) {
2620
2621
  dismiss().catch(console.error);
2621
2622
  event.preventDefault();
2622
2623
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@simonbackx/vue-app-navigation",
3
3
  "main": "./dist/index.js",
4
4
  "types": "./dist/index.d.ts",
5
- "version": "2.12.0",
5
+ "version": "2.13.0",
6
6
  "exports": {
7
7
  ".": {
8
8
  "import": "./dist/index.js",