Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combobox not rendering selected item correctly #670

Open
xav-ie opened this issue Mar 29, 2024 · 2 comments
Open

Combobox not rendering selected item correctly #670

xav-ie opened this issue Mar 29, 2024 · 2 comments

Comments

@xav-ie
Copy link

xav-ie commented Mar 29, 2024

  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.

@thejackshelton
Copy link
Contributor

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

@maiieul
Copy link
Contributor

maiieul commented May 31, 2024

Still an issue @thejackshelton ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants