designsystemet icon indicating copy to clipboard operation
designsystemet copied to clipboard

Combobox - selecting a filtered value resets the input

Open hansenalexander opened this issue 1 year ago • 2 comments

Description of the bug

When filtering options in a combobox and selecting a value I'd expect it not to remove the searchstring as it does now. If the list is long and I want to select all the values that starts with a specific pattern I would have to filter again and again. In addition to this you won't be sent back to the top of the list, you'll notice this in a longer list of options.

Steps To Reproduce

  1. Go to https://storybook.designsystemet.no/?path=/docs/felles-combobox--docs
  2. Find the multiple-example
  3. Type 'T' and you should get two matches
  4. Choose 1 of the values
  5. At this point the inputfield has been reset and if you wanted to choose both values starting with 'T' you would either have to filter again or find it manually by scrolling.

Additional Information

No response

hansenalexander avatar Feb 28 '24 11:02 hansenalexander