-
Notifications
You must be signed in to change notification settings - Fork 169
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
Simple filter to display matching instances in the dropdown. #489
Conversation
@@ -147,7 +150,7 @@ fun LoginForm( | |||
expanded = false | |||
}, | |||
) { | |||
instanceOptions.forEach { selectionOption -> | |||
instanceOptions.filter { instance.isEmpty() || it.contains(instance) }.forEach { selectionOption -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed a lot of slowness and keyboard issues here, and it might be because the filtering is being done inside the ExposedDropdown.
https://alexzh.com/jetpack-compose-dropdownmenu/
Check the bottom of that page, it has an example of filtering. Very close to yours, but try it out.
b521137
to
278d312
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well, thank you!
Reverting this because it causes a lot of performance and weird issues with keyboards. |
login_instace_filter.webm