We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c95922a commit 0114d5eCopy full SHA for 0114d5e
src/lazy-define.ts
@@ -71,8 +71,7 @@ function scan(element: ElementLike) {
71
}
72
for (const el of pendingElements) {
73
for (const tagName of dynamicElements.keys()) {
74
- const child: Element | null =
75
- el instanceof Element && el.matches(tagName) ? el : el.querySelector(tagName)
+ const child: Element | null = el instanceof Element && el.matches(tagName) ? el : el.querySelector(tagName)
76
if (customElements.get(tagName) || child) {
77
const strategyName = (child?.getAttribute('data-load-on') || 'ready') as keyof typeof strategies
78
const strategy = strategyName in strategies ? strategies[strategyName] : strategies.ready
0 commit comments