Skip to content

fix(popupbox): close popup when toggle button is clicked while open - #4082

Open
corvinsz wants to merge 2 commits into
MaterialDesignInXAML:masterfrom
corvinsz:fix/2280
Open

fix(popupbox): close popup when toggle button is clicked while open#4082
corvinsz wants to merge 2 commits into
MaterialDesignInXAML:masterfrom
corvinsz:fix/2280

Conversation

@corvinsz

@corvinsz corvinsz commented Aug 14, 2026

Copy link
Copy Markdown
Member

fixes #2280

The OP pointed out 3 things:

PopupBox don't opened when cursor is hovered

As @Keboo mentioned, this is by design.

PopupBox don't closed on second click (when opened).

That's what this PR is about.
The fix was just to remove a condition for an early exit in the ToggleButtonOnPreviewMouseLeftButtonUp() method.

I don't see the reason for an early exit in the PopupBoxPopupMode.Click mode. I guess this is just old code added 11 years ago. 9c8d873

PopupBox has incorrect Ripple on second click

Already fixed in #3843

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MultiFloatingActionPopupBox has incorrect behavers (closing, click) (PopupBox)

2 participants