Skip to content

Commit

Permalink
fix: add typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadBazaz committed Jul 15, 2024
1 parent 0d50ed9 commit 1482bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialog/internal/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class Dialog extends dialogBaseClass {
// focusable elements. TreeWalker is faster than `querySelectorAll('*')`.
// We check for isServer because there isn't a "document" during an SSR
// run.
private readonly treewalker = isServer ? {} : document.createTreeWalker(
private readonly treewalker = isServer ? {} as TreeWalker : document.createTreeWalker(
this,
NodeFilter.SHOW_ELEMENT,
);
Expand Down

0 comments on commit 1482bff

Please sign in to comment.