Skip to content

bug: unexpected ionChange emit with wrong event data #27986

Closed as not planned
Closed as not planned
@loopezz

Description

@loopezz

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

ionChange on ion-radio-group is being trigger with wrong event data when used with ion-accordion-group as child element and after clicking on an ion-accordion element to toggle the accordion.

Expected Behavior

It must not emit the ionChange of the ion-radio-group because the selected radio is unchanged.

Steps to Reproduce

  1. Go to https://stackblitz.com/edit/ionic7-highlight-issue-y3pfzf?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts,src%2Findex.html
  2. Open console log;
  3. Click on a radio button;
  4. Confirm the ionChange is being trigger in the console log;
  5. Toggle an accordion;
  6. Check the console log once again.

Code Reproduction URL

No response

Ionic Info

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