Awkward navigation of AutoComplete when defaultActiveFirstOption=false
and no values are selected
#16572
Closed
1 task done
Labels
Reproduction link
Steps to reproduce
Route 1):
AutoComplete
barRoute 2):
AutoComplete
barWhat is expected?
The outer form should be submitted, thereby alerting "submit" to the browser in the demo.
My rationale: Even though no options are selected in the dropdown, if the user enters some text and hits enter, s/he should expect
AutoComplete
to actually use the value and proceed to submit the form.What is actually happening?
Nothing happens since no option is selected.
This glitch only occurs when
defaultActiveFirstOption={false}
because otherwise the first match always gets selected by default. Current workaround is for user to pressEsc
after entering the keyword and then pressEnter
, but I don't think that's ideal...The text was updated successfully, but these errors were encountered: