| … | … | @@ -416,22 +535,14 @@ export function showContextMenuFallback<T extends string>( | |
| 433 | - | updateHighlight(); | |
| 541 | + | refreshHighlights(); | |
| 434 | 542 | }); | |
| 543 | + | button.addEventListener("focus", updateHighlight); | |
🟡 Medium src/contextMenuFallback.ts:543
Closed submenu buttons remain in highlightUpdaters, so each later keyboard or hover refresh updates every button from every submenu opened during the session, while their detached DOM trees stay retained. Unregister each closing menu’s highlight updater when removing its DOM node.
No longer relevant as of e74c5fcef58a50175ad582098a1cd478063177d9