#210 - Fixed scrolling issue (#220)

This commit is contained in:
Simon Cambier
2023-04-07 21:51:22 +02:00
committed by GitHub
parent 56fc8157fb
commit 30dd78f8d9

View File

@@ -235,7 +235,7 @@
async function scrollIntoView(): Promise<void> {
await tick()
if (selectedNote) {
const elem = document.querySelector(
const elem = activeWindow.document.querySelector(
`[data-result-id="${selectedNote.path}"]`
)
elem?.scrollIntoView({ behavior: 'auto', block: 'nearest' })