mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
Opening a dialog window via a command from a menupopup leads to unexpected glitches in the dialog's popups (e.g., collections menu in newCollection dialog on macOS won't go away when you click away, and on Windows, child collections don't appear when a parent is hovered). This is due to some kind of race condition that arises when the dialog appears when the popup is still closing. This workaround captures command events from menupopups, closes the popup, stops propagation of those events, and then dispatches a copy of that event after a delay. This gives the popup enough time to close. Fixes: #5408 Fixes: #4891 |
||
|---|---|---|
| .. | ||
| content | ||
| locale | ||
| skin/default/zotero | ||