Skip to content

bug: ion-radio does not keep checked-state after updating the underlaying object #29442

Description

@mariusbolik

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

Initially, the ion-radio-button is checked correctly. But after updating the objects that contain the data that is used to display the ion-radion-buttons, the checked-state gets lost, even though the value property stays the same. Seems that this bug appears on Angular standalone projects.

Perhaps this error could be related to the following issue: #29414
It could also be that this error can be found in other components, such as ion-accordion.

Expected Behavior

The active ion-radio-button should be highlighted when it's value matches the value of it's containing ion-radio-group - as was the case before standalone components.

Steps to Reproduce

  1. Go to https://stackblitz.com/edit/angular-vquurr-ec7ark?file=src%2Fapp%2Fexample.component.html
  2. Click the "Update Data" Button

Code Reproduction URL

https://stackblitz.com/edit/angular-vquurr-ec7ark?file=src%2Fapp%2Fexample.component.html

Ionic Info

Ionic CLI : 7.2.0
Ionic Framework : @ionic/angular 8.0.1
@angular-devkit/build-angular : 17.3.6
@angular-devkit/schematics : 17.3.6
@angular/cli : 17.3.6
@ionic/angular-toolkit : 11.0.1

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions