Преглед изворни кода

Fixed a small bug when toggling items in toolbar

Hugo Häggmark пре 7 година
родитељ
комит
67e8958aec
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      public/app/features/dashboard/dashgrid/EditorTabBody.tsx

+ 1 - 1
public/app/features/dashboard/dashgrid/EditorTabBody.tsx

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