-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: unexpected ionChange emit with wrong event data #27986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. The
logRadioGroupChanged(event: any) {
if (event.target.tagName === 'ION-RADIO-GROUP') {
console.log('Radio group changed:', event.detail.value);
}
} edit: I am updating the docs to clarify this behavior: ionic-team/ionic-docs#3085 |
You can also prevent this bubbling by calling |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
ionChange
onion-radio-group
is being trigger with wrong event data when used withion-accordion-group
as child element and after clicking on anion-accordion
element to toggle the accordion.Expected Behavior
It must not emit the
ionChange
of theion-radio-group
because the selected radio is unchanged.Steps to Reproduce
ionChange
is being trigger in the console log;Code Reproduction URL
No response
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: