Algorithm fix: fill "allElements" with only unique elements to improve performance.

pull/800/head
Pavel Dymkov 2022-06-24 15:37:38 +03:00
rodzic 153fe15ed3
commit 012206e4d8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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