• M
    Fix context menu retrigger race (#59059) · 27b7b13f
    Matt Bierner 提交于
    Fixes #58711
    
    When a context menu is triggered from inside another context menu, we have a race condition related to ipc. This is cause by the `close` event for context menus being global. In the retrigger case, `close` ends up being fired after the second context menu is created. This ends up removing the click handler for the new context menu
    
    Fix is to add a menu id to the close event.
    27b7b13f
contextmenu.ts 2.0 KB