Skip to content

[6.x] Fix combobox dropdown not showing in modals#12158

Merged
jasonvarga merged 8 commits intomasterfrom
comboboxes-in-modals
Sep 12, 2025
Merged

[6.x] Fix combobox dropdown not showing in modals#12158
jasonvarga merged 8 commits intomasterfrom
comboboxes-in-modals

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

@duncanmcclean duncanmcclean commented Aug 25, 2025

This pull request fixes an issue where it wasn't possible to open the combobox's dropdown inside a modal. According to this comment, you need to wrap ComboboxViewport in FocusScope for it to display properly.

This PR also makes a slight tweak to the "Create Localization" modal mentioned in the issue, adopting the <ui-field> component.

Fixes #12157.
Fixes #12192.

Copy link
Copy Markdown
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this makes it all a bit derpy when tabbing into it.

It happens inside and outside of a modal. Try adding a select field to your publish form and tab into it. Try it on master and this branch and you'll see the difference.

In the modal there's a weird double focus ring now too.

CleanShot 2025-08-25 at 19 57 29

@duncanmcclean
Copy link
Copy Markdown
Member Author

@jasonvarga Just pushed up a couple of tweaks. Let me know if it still feels off.

CleanShot.2025-08-26.at.15.51.44.mp4

@jasonvarga jasonvarga merged commit 1ff6792 into master Sep 12, 2025
18 checks passed
@jasonvarga jasonvarga deleted the comboboxes-in-modals branch September 12, 2025 13:35
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.

[6.x] Bard link popup closes when changing link type [6.x] Select dropdowns in modals cannot be clicked

2 participants