Skip to content

Commit 36a13fd

Browse files
committed
Don't dispatch update events when hovering menu items
This only affects the Schrödinger's Checkbox as far as I know, and arguably makes it more thematic, since it only changes when "observing" it. Should it be called Schrödinger's Tick, btw? haha
1 parent c423ae6 commit 36a13fd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

MenuBar.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ function MenuBar(menus) {
522522
// *Maybe* it could look at more of the overall state within `highlight`,
523523
// but could it distinguish hovering an outer vs an inner item if two are highlighted?
524524
item_el.addEventListener("pointerenter", () => {
525-
menu_popup_el.dispatchEvent(new CustomEvent("update"), {}); // @TODO: why?
526525
this.highlight(item_index);
527526
send_info_event(item);
528527
});

0 commit comments

Comments
 (0)