Skip to content

Commit 64f1d9d

Browse files
authored
fix: tab active state when switching tab with api (#1557)
1 parent 421088e commit 64f1d9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/editorManager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,9 @@ async function EditorManager($header, $body) {
668668
}
669669
}
670670

671+
file.tab.classList.add("active");
672+
file.tab.scrollIntoView();
673+
671674
if (file?.hideQuickTools) {
672675
root.classList.add("hide-floating-button");
673676
actions("set-height", { height: 0, save: false });

0 commit comments

Comments
 (0)