Skip to content

Commit 1c6af2d

Browse files
committed
Remove widget container after plotly widget view gets destroyed
1 parent 62489d8 commit 1c6af2d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

js/src/output.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ Shiny.addCustomMessageHandler("shinywidgets_comm_close", async (msg_txt) => {
227227
// way to drop the resize event listener (see the diff in the link above)
228228
// https://github.com/posit-dev/py-shinywidgets/issues/166
229229
delete v.model;
230+
// Ensure sure the lm-Widget container is also removed
231+
v.remove();
230232
}
231233

232234

0 commit comments

Comments
 (0)