Explorar el Código

Fixed a small bug when toggling items in toolbar

Hugo Häggmark hace 7 años
padre
commit
67e8958aec
Se han modificado 1 ficheros con 1 adiciones y 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,
     });
   };