fix(runtime): bind inserted revealed triggers
req: runtime/007
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user