mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
Algorithm fix: fill "allElements" with only unique elements to improve performance.
This commit is contained in:
@@ -67,7 +67,7 @@ export function getTabbableBoundary(root: HTMLElement | ShadowRoot) {
|
||||
}
|
||||
}
|
||||
|
||||
[...el.querySelectorAll('*')].forEach((e: HTMLElement) => walk(e));
|
||||
[...el.children].forEach((e: HTMLElement) => walk(e));
|
||||
}
|
||||
|
||||
// Collect all elements including the root
|
||||
|
||||
Reference in New Issue
Block a user