Skip to content

Commit 1353943

Browse files
mumiaowewoor
authored andcommitted
fix: currentTab of the currentGroup is selected by default when add EditorGroup
1 parent 89d6f9a commit 1353943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/workbench/editor/group.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function EditorGroup(props: IEditorGroupProps & IEditorController) {
6868
style={{ overflow: 'hidden' }}
6969
onSelectTab={onSelectTab}
7070
onContextMenu={handleTabContextMenu}
71-
activeTab={tab.id}
71+
activeTab={isActiveGroup ? tab.id : ''}
7272
onCloseTab={onCloseTab}
7373
/>
7474
</Scrollable>

0 commit comments

Comments
 (0)