Explorar o código

Fixed a small bug when toggling items in toolbar

Hugo Häggmark %!s(int64=7) %!d(string=hai) anos
pai
achega
67e8958aec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,
     });
   };