fix(editor): restore focus after query tab switches

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-07 15:27:02 +08:00
1 parent 5f81ed2e11
commit 0ec7bef098
2 files changed
+5

No files matched your search

@@ -6730,6 +6730,7 @@ watch([() => props.tabId, () => props.modelValue], ([tabId, val], [prevTabId]) =
if (!view.value) return;
if (tabId !== prevTabId) {
activateTabDocument(prevTabId, tabId, val);
if (props.autoFocus) restoreEditorFocus();
return;
}
if (val !== view.value.state.doc.toString()) {