-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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 popover does show the selected value in the opened popover #25759
Comments
Thanks for the issue. The problem here is we reverse the order of the parameters when checking if the checkboxes are checked or not. As a result, However, this is something we should fix. When we rendering the selected text in the
When creating the alert checkboxes we pass in the
value , it is actually the value of the option, not the value of the select component.
However, the underlying implementation for |
Here is a dev build if you are interested in giving the fix a test:
Note: You may need to test this in a local Ionic application. StackBlitz has some issues with installing dev builds in non-Web Container instances. edit: One thing to note is that the first parameter will be the |
Thanks for the issue. This has been resolved via #25764, and a fix will be available in an upcoming release of Ionic Framework. Please feel free to continue testing the dev build. Note: As a result of this change, the param order will now match what is stated on the docs: https://ionicframework.com/docs/api/select#comparewith The first parameter will be the |
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. |
Prerequisites
Ionic Framework Version
Current Behavior
The ion-select with multiple=true and compareWith function does not show the selected value in the opened popover when the selected value is string and the value to compare against is number. compareWith works correctly returning true for the selected value.
NOTE: if both, the selected value and the value to compare against are numbers, all work fine.
Expected Behavior
The opened popover must show the selected value
Steps to Reproduce
Note the selected value (text) is shown correctly
Note that in the opened popover no value is selected - see below
Code Reproduction URL
https://stackblitz.com/edit/ionic6-angular13-lfygtv?file=src/app/app.component.html
Ionic Info
See https://stackblitz.com/edit/ionic6-angular13-lfygtv?file=src/app/app.component.html
Additional Information
if both, the selected value and the value to compare against are numbers, all work fine.
The text was updated successfully, but these errors were encountered: