Steven Silvester před 7 roky
rodič
revize
a4bdcdbe90
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      packages/notebook/src/widget.ts

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

@@ -1829,7 +1829,7 @@ class Notebook extends StaticNotebook {
       // No cell has focus, ensure command mode.
       this.mode = 'command';
     }
-    if (target !== this.node) {
+    if (this.mode === 'command' && target !== this.node) {
       delete this.node.dataset[CODE_RUNNER];
     } else {
       this.node.dataset[CODE_RUNNER] = 'true';