We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae02bb commit 0a0d6daCopy full SHA for 0a0d6da
app/components/Code/FileTree.vue
@@ -37,7 +37,7 @@ function getFileRoute(nodePath: string): RouteLocationRaw {
37
const { toggleDir, isExpanded, autoExpandAncestors } = useFileTreeState(props.baseUrl)
38
39
const scrollIntoView = () => {
40
- const el = treeRoot.value?.querySelector('[aria-current="true"]') as HTMLElement
+ const el = treeRoot.value?.querySelector<HTMLElement>('[aria-current="true"]')
41
el?.scrollIntoView({ block: 'center', behavior: 'smooth' })
42
}
43
0 commit comments