custom-dropdown
custom-dropdown copied to clipboard
[Fetaure Request] Make selected item visible in drop down overlay list
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.
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!
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.
Ok. Got your point. So you are saying there should be a possibility to scroll to the selected item when the dropdown overlay expanded.
yes