What value should a combobox inside a native form submit? #1672
stefanprobst
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Hmm, I hadn't considered this before. When you blur away from the ComboBox, the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, placing a
ComboBox
inside a native<form>
will submit theinputValue
of the text field, whetherallowsCustomValue
is set or not. I think this is becauseprops.name
will always be placed on theinput
.Would it make sense to make the submit behavior dsependent on
allowsCustomValue
, i.e. when the combobox is more used like a searchable select w/allowsCustomValue: false
it submitsselectedKey | null
, (maybe via hidden select?), and when used more like a autosuggest w/allowsCustomValue: true
it submits the value of the input value?Beta Was this translation helpful? Give feedback.
All reactions