Custom value option in combobox #7235
-
Hello! I'm building a combobox component that allows a custom value which is supported out of the box. Is it possible to display a selectable custom value option instead of showing the empty state? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
snowystinger
Oct 23, 2024
Replies: 1 comment 2 replies
-
I think this should be doable already. You'd create an item which always matches the filter. When that key is selected, you'd add the item to your more permanent set/state with some new/different key and immediately select it. You'd need to control the selection state. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
kveperedo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this should be doable already. You'd create an item which always matches the filter. When that key is selected, you'd add the item to your more permanent set/state with some new/different key and immediately select it.
You'd need to control the selection state.