fix(editor): restore focus after query tab switches
This commit is contained in:
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()) {
|
||||
|
||||
Reference in new issue
Block a user