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

[4.0.0-beta.6] Multiple ion-select components incorrectly displayed #15401

Closed
doender opened this issue Aug 30, 2018 · 3 comments
Closed

[4.0.0-beta.6] Multiple ion-select components incorrectly displayed #15401

doender opened this issue Aug 30, 2018 · 3 comments
Assignees

Comments

@doender
Copy link

doender commented Aug 30, 2018

When I have multiple ion-select components on a page, for example:

<div>
    <ion-select interface="action-sheet" placeholder="Choose option A">
        <ion-select-option [value]="A1">A1</ion-select-option>
        <ion-select-option [value]="A2">A2</ion-select-option>
    </ion-select>
    <ion-select interface="action-sheet" placeholder="Choose option B">
        <ion-select-option [value]="B1">B1</ion-select-option>
        <ion-select-option [value]="B2">B2</ion-select-option>
    </ion-select>
</div>

and I click on either one of them, the last ion-select (in this case option B) is always opened; so I cannot set a value for option A.

This happens with a interface types (alert, popover and action sheet).

@ionitron-bot ionitron-bot bot added the triage label Aug 30, 2018
@doender
Copy link
Author

doender commented Aug 31, 2018

This can be fixed by wrapping each ion-select in an ion-item.
Is this a requirement for ion-select?

@Sprauch
Copy link

Sprauch commented Sep 7, 2018

multiple_selects

I have the same issue. While checking the stylesheet I noticed that if you change the style of button.select-cover position from absolute to relative, everything works exactly as intended.

However, as this is an inherited style, I haven't yet found a way to change it in the shadow DOM.
Please let me know if you come up with an alternate solution!

@ionitron-bot ionitron-bot bot removed the triage label Sep 18, 2018
@brandyscarney brandyscarney self-assigned this Sep 18, 2018
@ionitron-bot
Copy link

ionitron-bot bot commented Oct 18, 2018

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 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants