diff --git a/dialog/internal/dialog.ts b/dialog/internal/dialog.ts index f3acac47b1..0f5285b48d 100644 --- a/dialog/internal/dialog.ts +++ b/dialog/internal/dialog.ts @@ -564,7 +564,7 @@ export class Dialog extends dialogBaseClass { private getFirstAndLastFocusableChildren(): [HTMLElement, HTMLElement] | [null, null] { if (!this.treewalker) { - return [null, null] as const; + return [null, null]; } let firstFocusableChild: HTMLElement | null = null;