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 f26a6d2 commit 16bd1bb
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 @@ -153,7 +153,7 @@ export class Dialog extends LitElement {
// 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 16bd1bb

Please sign in to comment.