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

bug: ion-select always show options at start instead of showing selectedItem #20980

Closed
Rehan1579 opened this issue Apr 7, 2020 · 2 comments
Closed
Labels

Comments

@Rehan1579
Copy link

Bug Report

Ionic version:
[x] 5.x

Current behavior:
1- The list of options always appear to be at start even if the selectedItem is at last postion when there are more options (list becomes scroll-able).

2- The options list does not close if i click/select, the already selectedItem, i need to click somewhere else to close it.

Expected behavior:
1- if the last item or any other item which gets selected, then the selected option should be shown right away instead of the need to scroll down and see where the selected item is.

2- The options list needs to get close if selectedItem is selected/clicked again, it happens in all other UI kits.

Steps to reproduce:

Related code:

https://stackblitz.com/edit/ionic-v4-angular-tabs-22m8i9?embed=1&file=src/app/tab1/tab1.page.html

insert short code snippets here

Other information:

Ionic info:

Ionic CLI : 6.2.2
Ionic Framework : @ionic/angular 5.0.4
@angular-devkit/build-angular : 0.803.25
@angular-devkit/schematics : 8.3.25
@angular/cli : 8.3.25
@ionic/angular-toolkit : 2.2.0
NodeJS : v12.16.1
npm : 6.14.2
OS : Windows 10

insert the output from ionic info here
@ionitron-bot ionitron-bot bot added the triage label Apr 7, 2020
@Rehan1579 Rehan1579 changed the title bug: ion-select always show options at start instead of selectedItem bug: ion-select always show options at start instead of showing selectedItem Apr 7, 2020
@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 May 7, 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 May 7, 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