We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 193e04b commit 77ce8caCopy full SHA for 77ce8ca
src/internal/focus-lock-utils/utils.ts
@@ -30,7 +30,7 @@ export function isFocusable(element: HTMLElement): boolean {
30
}
31
32
export function getAllFocusables(container: HTMLElement): HTMLElement[] {
33
- return Array.prototype.slice.call(container.querySelectorAll(tabbables));
+ return [...container.querySelectorAll(tabbables)] as HTMLElement[];
34
35
36
function getFocusables(container: HTMLElement): HTMLElement[] {
tsconfig.json
@@ -1,7 +1,7 @@
1
{
2
"compilerOptions": {
3
- "lib": ["es2020", "dom"],
4
- "target": "es2015",
+ "lib": ["es2021", "dom"],
+ "target": "es2019",
5
"module": "esnext",
6
"moduleResolution": "node",
7
"esModuleInterop": true,
0 commit comments