Explorar el Código

Merge pull request #5882 from fcollonval/fix-5873

Fix bug output view not closing with associated window
Ian Rose hace 6 años
padre
commit
12c1a0149c
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      packages/notebook-extension/src/index.ts

+ 4 - 1
packages/notebook-extension/src/index.ts

@@ -1462,7 +1462,10 @@ function addCommands(
       });
 
       // Remove the output view if the parent notebook is closed.
-      nb.disposed.connect(widget.dispose);
+      nb.disposed.connect(
+        widget.dispose,
+        widget
+      );
     },
     isEnabled: isEnabledAndSingleSelected
   });