qwik-ui icon indicating copy to clipboard operation
qwik-ui copied to clipboard

Combobox not rendering selected item correctly

Open xav-ie opened this issue 1 year ago • 1 comments

  1. select item in list
  2. clear selection
  3. notice that where you selected item in list is now being reported as selected

The selected item seems to be be index based, but does not take into account the list indices changing on combo text input.

Example:

  1. Input "J" combo input: "J" list:
  • joe
  • joseph
  • joseppi
  1. you select "joseppi" combo input: "J" list:
  • joe
  • joseph
  • joseppi <- selected
  1. you then combo input text. combo input: "" list:
  • alice
  • bob
  • cool kid <- selected
  • joe
  • joseph
  • joseppi

The "selected" item is not accurate here. It should probably always show the selected item. I think it should probably be alphabetized into the results list.

xav-ie avatar Mar 29 '24 05:03 xav-ie

Oh wow, that is definitely a bug haha. Thanks for bringing this to our attention, will try to reproduce

thejackshelton avatar Apr 19 '24 03:04 thejackshelton

Still an issue @thejackshelton ?

maiieul avatar May 31 '24 13:05 maiieul

fixed in qwik ui 0.5

thejackshelton avatar Jul 11 '24 02:07 thejackshelton