Skip to content
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

Popups don't close when the user clicks outside of the ComposePanel #737

Open
hamen opened this issue Dec 20, 2024 · 3 comments
Open

Popups don't close when the user clicks outside of the ComposePanel #737

hamen opened this issue Dec 20, 2024 · 3 comments
Assignees
Labels
blocked-externally This issue or feature is blocked by external dependencies (e.g., bugs in Compose) bug Something isn't working

Comments

@hamen
Copy link
Collaborator

hamen commented Dec 20, 2024

https://youtrack.jetbrains.com/issue/CMP-7269/Popup-is-not-dismissed-by-clicking-or-moving-focus-outside-ComposePanel.

@hamen hamen added bug Something isn't working blocked-externally This issue or feature is blocked by external dependencies (e.g., bugs in Compose) labels Dec 20, 2024
@hamen hamen self-assigned this Dec 20, 2024
@rock3r
Copy link
Collaborator

rock3r commented Dec 20, 2024

Is it really the same issue? This is more general and makes me think "if I click outside the popup, but on the same ComposePanel, the popup is not dismissed. Is this the case?

@hamen
Copy link
Collaborator Author

hamen commented Dec 23, 2024

Clicking outside the popup, but on the same ComposePanel closes the popup.
Clicking outside the popup, on a Swing component, does not close the popup.

Recording2024-12-23115339-ezgif com-video-to-gif-converter

@rock3r rock3r changed the title SplitButton - On lost focus, close the popup Popups don't close when the user clicks outside of the ComposePanel Dec 24, 2024
@rock3r
Copy link
Collaborator

rock3r commented Dec 24, 2024

I renamed the issue to better reflect the actual issue at hand — it's not about split buttons but popups at large. It also happens when focus is moved outside the ComposePanel while a popup is open; it should dismiss it, but it doesn't. We do have a workaround, which we paired on last week (the COMPONENT property) that is not blocked by anything. It only solves the click repro though, not the focus one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked-externally This issue or feature is blocked by external dependencies (e.g., bugs in Compose) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants