AlaskaAirlines / auro-combobox

An auroLabs custom element w/an experimental API. You've been warned.
https://auro.alaskaair.com/components/auroLabs
Apache License 2.0
4 stars 1 forks source link

auro-combobox: filter options list #178

Open vitaliyalekhnovich opened 2 months ago

vitaliyalekhnovich commented 2 months ago

Is your feature request related to a problem? Please describe.

Currently using the combobox will allow a user to type anything without forcing them to pick from the dropdown list. A good example is on the https://auro.alaskaair.com/components/auro/combobox for Airports example. Type in not an airport and click outside of the combobox. The combobox looks like a valid option was selected and not one of the predefined options like seattle tacoma international. image

Describe the solution you'd like

An ideal solution would be to prompt the user with an error if they have not selected a predefined option. Only a predefined option should be selected from a filtered list based on what the user has typed so far.

Describe alternatives you've considered

An alternative solution I have considered is once a user clicks out of the combobox check blur event if the current value matches one of the predefined menu options of the combobox.

Additional context

No response

Exit criteria

No response