Replies: 1 comment 1 reply
-
Hey @RaenonX did you find a solution for this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://codesandbox.io/p/sandbox/tailwind-combobox-r48pw3?file=%2Fsrc%2FApp.tsx%3A23%2C50
For the combo box allowing custom value and no options candidate, editing the value then click on enter should just submit the form.
Reproduction?
I think this is because that whenever the input value has changed, regardless if it actually has options or not, it marks the combobox as "opened." So the 1st hit closes it, then the 2nd hit actual submits it.
Expected / Wanted Behavior
Without any options, simply hitting enter should just submit the form. If empty candidate is something possibly to worry about (so to mark the combobox as open), maybe add some
boolean
attribute that dictates the behavior on empty?As always, thanks for creating this lib.
Beta Was this translation helpful? Give feedback.
All reactions