Pārlūkot izejas kodu

Merge pull request #5882 from fcollonval/fix-5873

Fix bug output view not closing with associated window
Ian Rose 6 gadi atpakaļ
vecāks
revīzija
12c1a0149c
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  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
   });