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