Repository navigation
maple-agent: dismiss an open popup on a second press of its button - #999
Closed
maple-engineering[bot] wants to merge 1 commit into
Closed
maple-engineering[bot] wants to merge 1 commit into
maple-engineering[bot] wants to merge 1 commit into
Conversation
The menu's outside-press handler runs before the click, so the click was opening the menu again. The trigger now takes that press in the capture phase.
Contributor
|
My review of this surfaced a lot of manual hand crafted popup logic and thus I'll be going through a heavier refactor pass on this before then fixing the bug. I will close if/when I have something. |
Contributor
Author
|
Superseded by #1002, which is merged. Closing this alternative. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #997
A second press on the button that opened a popup now leaves the popup closed. The menu's outside-press handler runs before the click, so that click was opening the menu again.
popup_presstakes the press in the capture phase and stops it. It is wired to:Right-click menus are unchanged. The folder-plus control on the All Projects row stays a separate button, so pressing it does not toggle the project menu.
Tests click each of those triggers twice, and also press outside an open composer menu.
Test plan