custom-dropdown icon indicating copy to clipboard operation
custom-dropdown copied to clipboard

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

Open hungryemon opened this issue 1 year ago • 4 comments

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.

hungryemon avatar Dec 05 '23 10:12 hungryemon

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!

AbdullahChauhan avatar Dec 30 '23 13:12 AbdullahChauhan

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.

hungryemon avatar Dec 31 '23 02:12 hungryemon

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

AbdullahChauhan avatar Dec 31 '23 07:12 AbdullahChauhan

yes

hungryemon avatar Jan 02 '24 02:01 hungryemon