Explorar el Código

Logic cleanup

Steven Silvester hace 8 años
padre
commit
5965f68421
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/notebook/src/actions.ts

+ 1 - 1
packages/notebook/src/actions.ts

@@ -848,7 +848,7 @@ namespace Private {
    */
   export
   function handleState(widget: Notebook, state: IState): void {
-    if (state.wasFocused) {
+    if (state.wasFocused || widget.mode === 'edit') {
       widget.activate();
     }
     ElementExt.scrollIntoViewIfNeeded(widget.node, widget.activeCell.node);