You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Selected options not set with ion-select multiple and compareWith #24742
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v4.x
v5.x
v6.x
Current Behavior
When using an ion-select with multiple and compareWith, the ion-select will display the selected value in the label, but when the select is opened, the option does not show as selected.
Video from reproduction:
ionic-select-bug.mov
Expected Behavior
When an ion-select has a default value, it should display as selected/checked in the opened state.
Steps to Reproduce
Use an ion-select with multiple="true" and a compareWith function
Set a default vale on the ion-select to one of the options passed to the select
Notice: The ion-select value label displays the selected option's text
Open the select (click)
Notice: The ion-select does not display any selected value.
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.
Activity
ionitron-bot commentedon Mar 11, 2022
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.