Skip to content

Commit 77ce8ca

Browse files
chore: Update tsconfig target to ES2019 (#169)
Co-authored-by: Trevor Burnham <[email protected]>
1 parent 193e04b commit 77ce8ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/internal/focus-lock-utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function isFocusable(element: HTMLElement): boolean {
3030
}
3131

3232
export function getAllFocusables(container: HTMLElement): HTMLElement[] {
33-
return Array.prototype.slice.call(container.querySelectorAll(tabbables));
33+
return [...container.querySelectorAll(tabbables)] as HTMLElement[];
3434
}
3535

3636
function getFocusables(container: HTMLElement): HTMLElement[] {

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
3-
"lib": ["es2020", "dom"],
4-
"target": "es2015",
3+
"lib": ["es2021", "dom"],
4+
"target": "es2019",
55
"module": "esnext",
66
"moduleResolution": "node",
77
"esModuleInterop": true,

0 commit comments

Comments
 (0)