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
ComboBoxinside a native<form>will submit theinputValueof the text field, whetherallowsCustomValueis set or not. I think this is becauseprops.namewill 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: falseit submitsselectedKey | null, (maybe via hidden select?), and when used more like a autosuggest w/allowsCustomValue: trueit submits the value of the input value?Beta Was this translation helpful? Give feedback.
All reactions