-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: nested ion-checkbox
inside ion-radio-group
does not work
#27492
Comments
Thanks for the report. Can you clarify why you are using checkboxes inside of a radio group? The documentation states that radios should be used inside of a radio group. |
@liamdebeasi Thanks for your answer! Oh, I am using radios in the radio group, in some cases I just display an additonal checkbox directly below the selected radio option (like in the reprodution example). Our specific use-case is a a radio group where the user can select how they want to pay (credit-card, paypal, etc.), and for some of these options we offer the possibility to save the payment method, so it can be used without entering the details again, this is done using a checkbox which is available below some of the options when they are selected. We could just swap the checkboxes for toggles, as these do work as expected, but seems like it should work for all inputs, as it has through ionic versions 1-6. |
It looks like this behavior change is related to a6b2629#diff-480c2b0a087c089851e16f28f69d728afc0bfbddf1b5c19b0b8ee07bd072c24b.
|
Going to merge this with #27169. As part of the work for the linked ticket we plan to update |
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. |
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
When nesting an
ion-checkbox
inside anion-radio-group
alongsideion-radio
elements the checkbox cannot be checked/unchecked.Expected Behavior
The checkbox should keep working as usual. In v6 this was working, also e.g.
ion-toggle
works.Steps to Reproduce
Code Reproduction URL
https://github.com/DavidStrausz/modern-input-test
Ionic Info
Additional Information
I'm using
@ionic/angular
The text was updated successfully, but these errors were encountered: