Reset selected index to 0 when filtering search #86
manuelsteiner
started this conversation in
Ideas
Replies: 1 comment
-
That makes sense; I think it's good to reset the selected index to 0. If you want to open a PR, that would be great. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
would it make sense to reset the selected index in the js file to
0
after searching for a command or dependency?Scenario
A user starts typing and, scrolls up and down in provided list and then continues typing to narrow the search.
Outcome
In case the selected index is now out of bounds of the search result list, nothing is highlighted and you need to hit up to reach a selected item.
Improvement
Would it make sense to have a deterministic behaviour as in either the index gets reset to
0
after reach search or alternatively if the current selected index is out of bounds of the search result list at least?I am open to create a PR if you'd like and we agree on an implementation.
Beta Was this translation helpful? Give feedback.
All reactions