I originally had the issue of the selector being displayed even when there are no options.
If I am not allowing custom values and type something with no suggestions, the selector is displayed even when the input isn't focused:
I changed it so that the selector component won't display if there are no options available and custom values aren't allowed. I had to send allowCustomValues as a prop because it wasn't possible to distinguish whether custom values were allowed or not with the existing customValue prop alone. The value of null for customValue can mean that custom values aren't allowed, the current input has less characters than specified, or the input matches an existing option.
I originally had the issue of the selector being displayed even when there are no options.
If I am not allowing custom values and type something with no suggestions, the selector is displayed even when the input isn't focused:
I changed it so that the selector component won't display if there are no options available and custom values aren't allowed. I had to send
allowCustomValues
as a prop because it wasn't possible to distinguish whether custom values were allowed or not with the existingcustomValue
prop alone. The value ofnull
forcustomValue
can mean that custom values aren't allowed, the current input has less characters than specified, or the input matches an existing option.