cinemataztic / cine-ui

0 stars 0 forks source link

Improve error handling of and add loading state to Listbox #49

Closed MikkelWestermann closed 2 years ago

MikkelWestermann commented 2 years ago

This PR changes the behaviour of the Listbox when either no value or more than one value is found in options that match with the selected value. Instead of throw new Error(...) we're now using console.warn, which is much less intrusive. Besides that, a loading state has been implemented for async options.