Skip to content

Commit 1a63818

Browse files
authored
Merge pull request #2572 from opencloud-eu/fix/editor-slash-menu-scroll
fix(editor): slash menu scroll
2 parents ab02f1a + bafc5d8 commit 1a63818

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/web-pkg/src/editor/components/SlashCommandMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const onKeyDown = (event: KeyboardEvent): boolean => {
124124
125125
watch(selectedIndex, async () => {
126126
await nextTick()
127-
const el = dropRef.value?.$el?.querySelector('.text-editor-slash-menu__item--selected')
127+
const el = document.querySelector('.text-editor-slash-menu__item--selected')
128128
el?.scrollIntoView({ block: 'nearest' })
129129
})
130130

0 commit comments

Comments
 (0)