Skip to content

bug: ion-select label binding warning appears even with proper [label] property set #27066

Description

@enrij

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

Despite having properly set a [label] value on the ion-select, the warning in console does not disappear. Providing a text for aria-label (not [ariaLabel]) makes the warning desappear

Expected Behavior

Providing a value for either [label] oer [ariaLabel] should get rid of the warning

Steps to Reproduce

Use the following code in any component:

<ion-select [label]="'My awesome label'" [ariaLabel]="'My awesome label'">
    <ion-select-option>My awesome option 1</ion-select-option>
    <ion-select-option>My awesome option 2</ion-select-option>
</ion-select>

and observe the console warning despite providing both [label] and [ariaLabel] properties

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 7.0.0 (C:\Users\EnricoBarbieri\AppData\Roaming\nvm\v18.14.2\node_modules@ionic\cli)
Ionic Framework : not installed
@angular-devkit/build-angular : 15.2.4
@angular-devkit/schematics : 15.2.4
@angular/cli : 15.2.4
@ionic/angular-toolkit : 8.1.0

Capacitor:

Capacitor CLI : 4.7.0
@capacitor/android : not installed
@capacitor/core : 4.7.0
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 1.7.2

System:

NodeJS : v18.14.2 (C:\Program Files\nodejs\node.exe)
npm : 9.6.2
OS : Windows 10 (⬅️ not true: it's Windows 11)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions