fix(runtime): bind inserted revealed triggers

req: runtime/007
This commit is contained in:
slhx agent
2026-07-19 21:37:26 +02:00
parent e7ca6d2350
commit 7c98de1e8c
4 changed files with 15 additions and 3 deletions
+10
View File
@@ -1127,6 +1127,16 @@
if (node.hasAttribute(ROOT)) cleanupRemovedRoot(node);
descendantRoots(node).forEach(cleanupRemovedRoot);
});
record.addedNodes.forEach((node) => {
if (!(node instanceof Element)) return;
if (node.hasAttribute(ROOT)) bindRoot(node);
descendantRoots(node).forEach(bindRoot);
const owner = rootOf(node.parentElement);
if (owner) {
bindPolling(owner);
bindRevealed(owner);
}
});
});
}).observe(document.documentElement, { childList: true, subtree: true });
try {