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
Whenever i type only numbers, it automatically selects options.
Changing the value to be prefixed with something number seems to solve the issue. Maybe we missed something with #2095 where we applied this logic internally.
This is expected to happen, since we are checking if the input matches a value:
// ComboboxInput.tsx:72// check if input value is the same as a label, if so, select itconstoption=options[prefix(value.toLowerCase())];if(!option)return;if(selectedOptions[prefix(option.value)])return;
This is wrong, and I will fix this - it should check on the display value instead
Found when testing for bug #2124.
Whenever i type only numbers, it automatically selects options.
Changing the
value
to be prefixed with something number seems to solve the issue. Maybe we missed something with #2095 where we applied this logic internally.Forked sandbox with updated next version which was published today: https://codesandbox.io/p/sandbox/broken-night-forked-nrh89r?file=%2Fsrc%2FApp.tsx%3A40%2C25
The text was updated successfully, but these errors were encountered: