From 4da7de45ea7fe2ca367a0d5e0e9e8972070bb40b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 5 Apr 2025 23:18:22 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13851 --- app/src/layout/tabUtil.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/layout/tabUtil.ts b/app/src/layout/tabUtil.ts index a5d49533a..677725f90 100644 --- a/app/src/layout/tabUtil.ts +++ b/app/src/layout/tabUtil.ts @@ -274,6 +274,7 @@ export const copyTab = (app: App, tab: Tab) => { if (copyResizeTopElement) { const newElement = editor.protyle.wysiwyg.element.querySelector(`[data-node-id="${copyResizeTopElement.getAttribute("data-node-id")}"]`) if (newElement) { + editor.protyle.observerLoad?.disconnect(); newElement.scrollIntoView(); editor.protyle.contentElement.scrollTop += newElement.getBoundingClientRect().top - parseInt(copyResizeTopElement.getAttribute("data-resize-top")); }