Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
orlowdev committed Feb 16, 2025
1 parent ead0260 commit 352eb23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const OrdoCommandPaletteItem = (item: Ordo.CommandPalette.Item, on_click:
: void 0

on_mount(() => {
if (is_current && !is_in_view(element as Element, element.parentElement!))
if (element instanceof HTMLElement && is_current && !is_in_view(element, element.parentElement!))
element.scrollIntoView?.({ behavior: "smooth", inline: "center", block: "center" })
})

Expand Down

0 comments on commit 352eb23

Please sign in to comment.