Combobox (multiple prop) overwrites original input #2763
Replies: 2 comments
-
Actually, it seems to happen without |
Beta Was this translation helpful? Give feedback.
-
Alright, so I figured out what's happening. When the user receives a suggestion, the first matching However, if user has a value entered into the field, that is not part of the suggestion, but still a valid value, the value gets thrown out, because new value applied is the array with the selected options. I've worked around this using obtuse logic to controler |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Have been trying to make this work for a while using all kinds of state tracking on my component, but it just too convoluted to be practical.
The issue is that I'm using
<ComboxBox multiple>...</Combobox>
. The user is allowed to enter anything in there, and have the combobox provide suggestions. However, when blurring the user input it overrides user input with the initial suggestion. Problem is that those are just suggestions and any value the user provides is actually fine.Second, that when no suggestion is found and pressing the
Enter
key the input gets cleared. It will clear to either all of the input if no prior value was entered, or it will clear the freshly entered value.Example:
Caffeine Free, whatever else
turns toCaffeine Free
Beta Was this translation helpful? Give feedback.
All reactions