Fixed a small bug when toggling items in toolbar

This commit is contained in:
Hugo Häggmark 2019-01-09 11:49:17 +01:00
parent 9b8a5333cb
commit 67e8958aec

View File

@ -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,
}); });
}; };