Skip to content

bug: ion-select using popover interface causes bugs on hidden ion-radio components #26871

Closed as not planned
@davideshay

Description

@davideshay

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • v7.x
  • Nightly

Current Behavior

In the v7 beta, in react, I have a v7 ionSelect component, using a popover interface (does not happen with the other types) I get the following error about ion-radio components (note that these are auto-generated when using a popover interface, and my code doesn't use ion-radio components at all:

[Ionic Warning]: Using ion-radio with an ion-label has been deprecated. To migrate, remove the ion-label and pass your label directly into ion-radio instead.
Example: <ion-radio>Option Label:</ion-radio>

For radios that do not have a visible label, developers should use "aria-label" so screen readers can announce the purpose of the radio.

For radios that do not render the label immediately next to the radio, developers may continue to use "ion-label" but must manually associate the label with the radio by using "aria-labelledby". 

Expected Behavior

No errors or warnings.

Steps to Reproduce

  • Use v7 ionic react beta
  • use ion-select with interface=popover
  • examine console logs

Easiest way to reproduce is to use the stackblitz link from here : https://ionicframework.com/docs/v7/api/select. (the section around popover select interface types)

Code Reproduction URL

https://x2d6bwrun-dbck--3000.local-credentialless.webcontainer.io/

Ionic Info

Ionic:

Ionic CLI : 6.20.4 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 7.0.0-beta.5

Capacitor:

Capacitor CLI : 4.5.0
@capacitor/android : 4.5.0
@capacitor/core : 4.6.1
@capacitor/ios : not installed

Utility:

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

System:

NodeJS : v19.7.0 (/usr/local/Cellar/node/19.7.0/bin/node)
npm : 9.5.0
OS : macOS Monterey

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: buga confirmed bug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions