Editor: the box's menu closes when the slide changes under it
A colleague turning a canvas slide into a flow slide left an open box menu showing canvas rows, and they still ran. After every change to the document the open menu now closes if its box is gone or no longer selected, or the slide's layout is not the one its rows were drawn for; otherwise its region checks follow the box. A row also checks that it still applies to the box before it runs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 files changed,
+137
−24
fixtures/box-menu.mjs+31 −3fixtures/box-menu.test.mjs+57 −3fixtures/editor-entry.js+1 −1internal/slides/credits/assets.json+1 −1internal/slides/static/{editor.90c13b3e54239115.js => editor.df26b0b121842b74.js}+16 −16internal/slidestest/browser_quieter_fixes_test.go+31 −0
fixtures/box-menu.mjsLoading diff…
fixtures/box-menu.test.mjsLoading diff…
fixtures/editor-entry.jsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/static/{editor.90c13b3e54239115.js => editor.df26b0b121842b74.js}Loading diff…
internal/slidestest/browser_quieter_fixes_test.goLoading diff…