Skip to content

Commit 230fa6b

Browse files
[autofix.ci] apply automated fixes
1 parent febae0c commit 230fa6b

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

app/components/ReadmeTocDropdown.vue

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,21 @@ const itemScrollIntoView = (index: number) => {
145145
if (!item) return
146146
const el = document.getElementById(`${listboxId}-${item.id}`)
147147
if (el) {
148-
el.scrollIntoView({ block: 'center'})
148+
el.scrollIntoView({ block: 'center' })
149149
}
150-
}
150+
}
151151
152-
watch(isOpen, (open) => {
153-
if (open && highlightedIndex.value >= 0) {
154-
itemScrollIntoView(highlightedIndex.value)
155-
}
156-
}, {
157-
flush: 'post',
158-
})
152+
watch(
153+
isOpen,
154+
open => {
155+
if (open && highlightedIndex.value >= 0) {
156+
itemScrollIntoView(highlightedIndex.value)
157+
}
158+
},
159+
{
160+
flush: 'post',
161+
},
162+
)
159163
</script>
160164

161165
<template>

0 commit comments

Comments
 (0)