Describe the bug
When the selected value is not in the list of options, the error with the following message is thrown: "More than one label/option pair with same value.". This is a misleading error message for this case.
Furthermore, the Listbox should be able to handle a selected element when loading the options (i.e. async/loading state support).
To Reproduce
Set Listbox options to empty array []
Set value to some value 'test'
Expected behavior
The Listbox should be able to wait for options in case of async loading of the options. And should give a more appropriate error message otherwise.
Describe the bug When the selected value is not in the list of options, the error with the following message is thrown: "More than one label/option pair with same value.". This is a misleading error message for this case.
Furthermore, the Listbox should be able to handle a selected element when loading the options (i.e. async/loading state support).
To Reproduce
[]
'test'
Expected behavior The Listbox should be able to wait for options in case of async loading of the options. And should give a more appropriate error message otherwise.