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

feat: scroll to selected item in ion-select #22165

Closed
kensodemann opened this issue Sep 24, 2020 · 3 comments
Closed

feat: scroll to selected item in ion-select #22165

kensodemann opened this issue Sep 24, 2020 · 3 comments
Labels

Comments

@kensodemann
Copy link
Member

Feature Request

Ionic version:
[x] 5.x

Describe the Feature Request
When you have a reasonably long list of items that are being displayed in an ion-select, it would be helpful if the list would scroll such that the currently selected item is in view.

With recent changes, this is less of a problem on desktop as the Tab key will do this when you tab in to the select, but on mobile it is a bit clumsy currently to scroll down to the currently selected item.

Describe Preferred Solution
See this demo: https://github.com/kensodemann/demo-select

It has one select that uses the default alert interface and the other using the popover interface.

For both of them, select an item that you would need to scroll down to. Upon next opening that same select, it will start at the top rather than scrolling to the selected item.

@ionitron-bot ionitron-bot bot added the triage label Sep 24, 2020
@kensodemann
Copy link
Member Author

For reference, Angular MD's select will scroll to the selected item if there are several in the list: https://material.angular.io/components/select/overview (see the state picker a bit down the screen)

@liamdebeasi
Copy link
Contributor

Thanks for the issue. I am going to close this as a duplicate of #19296.

@ionitron-bot
Copy link

ionitron-bot bot commented Oct 24, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants