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

[Fetaure Request] Make selected item visible in drop down overlay list #43

Open
hungryemon opened this issue Dec 5, 2023 · 4 comments

Comments

@hungryemon
Copy link

On dropdown overlay open make sure the selected item is visible. I tried using scrollController.ensureVisible but it only takes upto 13th index. Rest item does not trigger this cause context somehow is null of them.

@AbdullahChauhan
Copy link
Owner

AbdullahChauhan commented Dec 30, 2023

Hey @hungryemon
Selected item is visible in the header of dropdown overlay. It will not display only if you set the property hideSelectedFieldWhenExpanded to true. Why you are using scrollController.ensureVisible, I don't understand. Please clear your issue. Thanks!

@hungryemon
Copy link
Author

hungryemon commented Dec 31, 2023

As example I have a list of 20 items. And the dropdown expanded section can show only 12. So I select a item at 15th index. Then expand the menu again. The list shows 1st 10 items again.
In this case I wanted to scroll to the 15th index item focused in the expanded section not on the top. Imagine for a huge list of 1000, if user select last item. Then he has to scroll manually to bottom which seems inconvenient.

@AbdullahChauhan
Copy link
Owner

Ok. Got your point. So you are saying there should be a possibility to scroll to the selected item when the dropdown overlay expanded.

@hungryemon
Copy link
Author

yes

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

2 participants