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

ComboBox: add ability to type arbitrary values that weren't provided in items #1943

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

McGaelen
Copy link

@McGaelen McGaelen commented Mar 25, 2024

This change implements #1726 by allowing users to type in any text they want into a ComboBox, without having it removed. This functionality is behind a new flag, called allowArbitraryValues. The default is false, which means that the ComboBox will continue to function the same as it did before if the user does not enable it.

When the value is not present in items (it is an arbitrary value), the value of selectedId will be undefined.

Please let me know what changes are needed. If a separate component is desired instead, I'm happy to make the change.

Thanks!

@McGaelen McGaelen changed the title #1726 - ComboBox: add ability to type arbitrary values that weren't provided in items ComboBox: add ability to type arbitrary values that weren't provided in items Mar 25, 2024
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.

None yet

1 participant