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 febae0c commit 230fa6bCopy full SHA for 230fa6b
1 file changed
app/components/ReadmeTocDropdown.vue
@@ -145,17 +145,21 @@ const itemScrollIntoView = (index: number) => {
145
if (!item) return
146
const el = document.getElementById(`${listboxId}-${item.id}`)
147
if (el) {
148
- el.scrollIntoView({ block: 'center'})
+ el.scrollIntoView({ block: 'center' })
149
}
150
-}
+}
151
152
-watch(isOpen, (open) => {
153
- if (open && highlightedIndex.value >= 0) {
154
- itemScrollIntoView(highlightedIndex.value)
155
- }
156
-}, {
157
- flush: 'post',
158
-})
+watch(
+ isOpen,
+ open => {
+ if (open && highlightedIndex.value >= 0) {
+ itemScrollIntoView(highlightedIndex.value)
+ }
+ },
159
+ {
160
+ flush: 'post',
161
162
+)
163
</script>
164
165
<template>
0 commit comments