-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocomplete isValueAnObject incorrectly checks for null #1943
Comments
Hello |
The 'return value' of the component can be in different formats depending on the 'incoming value'. If null is not treated as an object, the component will return arrays like it normally does instead of objects, which it only does if the value provided to it is an object to begin with. |
isValueAnObject() checks typeof value === 'object' which is true for null, so if the component starts out with value of null, it always produces values that are objects, which is unexpected.
The text was updated successfully, but these errors were encountered: