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

fix: keep selected index on menu update during search #759

Conversation

christoph-heinrich
Copy link
Contributor

@christoph-heinrich christoph-heinrich commented Nov 1, 2023

Updating items during an active search always selected the first item.

I'm not sure if I should put that if in a new loop or not.

Do you prefer those ifs to be on a single line now or not? Not sure now after those style changes.

@christoph-heinrich christoph-heinrich force-pushed the fix_menu_search_update_selection branch 2 times, most recently from d1a384b to f0c507b Compare November 1, 2023 18:32
@tomasklaen tomasklaen merged commit f1c41a5 into tomasklaen:main Nov 3, 2023
@christoph-heinrich christoph-heinrich deleted the fix_menu_search_update_selection branch November 3, 2023 14:23
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

Successfully merging this pull request may close these issues.

2 participants