Closed
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
- Nightly
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
- open this link https://ionic6-angular13-lfygtv.stackblitz.io
Note the selected value (text) is shown correctly - tap on the select control
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.