Fixed a small bug when toggling items in toolbar
This commit is contained in:
1 parent
9b8a5333cb
commit
67e8958aec
1 file changed
+1
-1
@@ -52,7 +52,7 @@ export class EditorTabBody extends PureComponent<Props, State> {
|
||||
onToggleToolBarView = (item: EditorToolbarView) => {
|
||||
this.setState({
|
||||
openView: item,
|
||||
isOpen: !this.state.isOpen,
|
||||
isOpen: this.state.openView !== item ? true : !this.state.isOpen,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user