@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user