Skip to content

bug: ion-select popover does show the selected value in the opened popover #25759

Closed
@ryaa

Description

@ryaa

Prerequisites

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

  1. open this link https://ionic6-angular13-lfygtv.stackblitz.io
    Note the selected value (text) is shown correctly
  2. tap on the select control
    Note that in the opened popover no value is selected - see below

Screen Shot 2022-08-15 at 09 07 44

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions