-
Notifications
You must be signed in to change notification settings - Fork 15.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: menu-will-show, menu-will-close and the click handler are never triggered for top-level menus #31915
Comments
Maybe I should add that I stumbled on these issues while trying to update my app's menu right before the user needs with, as otherwise I'm just throwing some performance out of the window (#24724). Is there any way to do that? I'm thinking of updating the menu when the cursor moves over the global menubar using an hard-coded height value for the menubar, and I'd really rather do something less hacky. (besides that won't work well if the menu is opened with a shortcut) |
I am seeing the same behavior in Electron 16.0.5... |
In our case, we need to force a blur event to occur so that the data in our embedded ACE editor is synced with the underlying "model" (in a knockout MMVV context). This creates a significant usability issue when the user is editing text and goes to the menu to invoke a menu item (e.g., Save, Validate, Prepare, and a dozen other possible actions) that grabs the text out of the underlying "model". We could theoretically add MacOS-specific code (since this is working properly on Windows and Linux) to every single action that depends on the editor contents to force a blur event but that gets really ugly, really fast. Please fix this bug. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Ping |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Bump |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Bump. |
Not seeing these events triggered in Electron 25 either, specifically I'd like to update a BrowserView's bounds (notably, the Y offset) when the user presses |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Still broken |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Still busted and no one cares |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
Preflight Checklist
Electron Version
13.1.7
What operating system are you using?
macOS
Operating System Version
Monterey
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
No response
Expected Behavior
menu-will-show
andmenu-will-close
events to work for app menus too.click
function to be called when root-level menu items in app menus are clicked too.Actual Behavior
None of that is happening.
Testcase Gist URL
No response
Additional Information
The Fiddle just updated itself and the uploader thing is spinning endlessly, so here are the files to reproduce the issue:
main.js (the only file I changed):
index.html:
renderer.js
preload.js
The text was updated successfully, but these errors were encountered: