stx-router 0.2.511 → 0.2.512

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/client.js +3 -0
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -2387,6 +2387,9 @@ else {
2387
2387
  while(host.firstChild)el.appendChild(host.firstChild);
2388
2388
  host.appendChild(el);
2389
2389
  if(host.__stx_disposers){el.__stx_disposers=host.__stx_disposers;host.__stx_disposers=null}
2390
+ // What the runtime keeps on the container for its top-level :if nodes that
2391
+ // are hidden (off the page, so out of reach of a DOM walk) goes with them.
2392
+ if(host.__stx_detached_if){el.__stx_detached_if=host.__stx_detached_if;host.__stx_detached_if=null}
2390
2393
  if(!curTab)curTab=currentTabId();
2391
2394
  active=newEntry(location.pathname+location.search+location.hash,scrollToken,histDepth);
2392
2395
  active.el=el;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stx-router",
3
3
  "type": "module",
4
- "version": "0.2.511",
4
+ "version": "0.2.512",
5
5
  "description": "File-based router for STX — .stx template discovery, nested layouts, typed route params, middleware, and client-side SPA navigation.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",