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

Search results behave random #598

Open
dannyyy opened this issue Jan 29, 2025 · 0 comments
Open

Search results behave random #598

dannyyy opened this issue Jan 29, 2025 · 0 comments

Comments

@dannyyy
Copy link

dannyyy commented Jan 29, 2025

Describe the bug
There are some strange inconsitencies between the search result, the selected item, and the displayed list after opening the drop down again.
One step-by-step reproduction list is provided with a code example.

My questions are:

  • After selecting one of the search results and reopening the list, what should appear?

    • The previous search result, but constantly even I open close the list multiple time?
    • A merge between the staticly provided entries (A, B) and the search result, but constantly?
    • Only the static entries and the current selected one?
    • The static entries and all previously selected entries?
  • After playing a bit with opening the drop down, picking an entry, search for new one I open get stuck that the selected entry from a search result isn't selected and displayed. Either the old value remains or nothing is displayed (not sure what is really selected in the HTML input)

Recreate it in Codepen
https://jsfiddle.net/yvohLm4a/3/

To Reproduce
Steps to reproduce the behavior:

  1. Open the drop down -> [A, B] Expected
  2. Search by any two characters -> [Null, Eins, Zwei, Drei, ..., Zehn] Expected
  3. Pick the first entry -> Selected value is displayed Expected
  4. Open the drop down -> [Null, Eins, Zwei, Drei, ..., Zehn] Partially Expected
  5. Pick the second entry -> Selected value is displayed Expected
  6. Open tht drop down -> [A, B, Null, Eins] is displayed Unexpected
  7. Search by any two characters -> [Null, Eins, Zwei, Drei, ..., Zehn] Expected
  8. Pick the first entry -> "A" is displayed not the selected entry Unexpected
    ...
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

1 participant