You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an autocomplete implementation where I am using an object array for the items, and I also want to have the property allowOtherValues to be true - but I get the error "inputValue.trim is not a function" when I try to select any item from the options.
Here's my code (sorry for the formatting, don't know why this is happening this way):
This seems to be a simple issue where the inputValue is assumed to be a string but it's actually an object. However, one would assume that if the Autocomplete has the itemToString property populated, then the trim function wouldn't apply on the object itself but the itemToString transformation of said object. Can you please sort this out?