Skip to content

Commit

Permalink
fix: currentTab of the currentGroup is selected by default when add E…
Browse files Browse the repository at this point in the history
…ditorGroup
  • Loading branch information
mumiao authored and wewoor committed Mar 1, 2021
1 parent 89d6f9a commit 1353943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workbench/editor/group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function EditorGroup(props: IEditorGroupProps & IEditorController) {
style={{ overflow: 'hidden' }}
onSelectTab={onSelectTab}
onContextMenu={handleTabContextMenu}
activeTab={tab.id}
activeTab={isActiveGroup ? tab.id : ''}
onCloseTab={onCloseTab}
/>
</Scrollable>
Expand Down

0 comments on commit 1353943

Please sign in to comment.