Skip to content

[6.x] Add <ui-combobox> component (select fieldtype) #11771

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

Open
wants to merge 32 commits into
base: ui
Choose a base branch
from

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented May 7, 2025

This pull request adds a new <Combobox> component, built on top of Reka's combobox.

This PR also integrates it nearly everywhere we were previously using <v-select>, like the select fieldtype, icon fieldtype and relationship fieldtypes.

CleanShot.2025-05-07.at.16.16.46.mp4

@duncanmcclean duncanmcclean changed the title [6.x] Select fieldtype [6.x] Add <ui-combobox> component (select fieldtype) May 7, 2025
Otherwise, when you're using a typeahead relationship field and the `<Combobox>` is mounted, there won't be any `options` passed in, so the currently selected option isn't visible.

By displaying the option label in the relationship fieldtype, we have the option's object (allowing us to get the title).
@duncanmcclean duncanmcclean marked this pull request as ready for review May 12, 2025 13:43
Copy link
Member

@jackmcdade jackmcdade left a comment

Choose a reason for hiding this comment

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

Fantastic work @duncanmcclean!

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.

2 participants