Closed RafaelKr closed 3 years ago
Having the same problem. Any update on this? One would expect that if IonRadioGroup
can be a FormControl
then it could be disabled (that is, the IonRadio
s inside it).
Still looking for an update to the above besides disabling IonRadio
options individually.
Thanks for the issue! This issue is being closed due to inactivity. 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.
Thank you for using Ionic!
Bug Report
Ionic version:
[x] 4.x
Current behavior: I'm using Reactive Forms in Angular. I have an
ion-radio-group
as a FormControl and want to disable it. Unfortunately theion-radio
buttons belonging to that group aren't disabled.Expected behavior: When disabling the
ion-radio-group
theion-radio
s should also be disabled. It should be possible to create a radio-group-value-accessor.ts for that, right? (https://github.com/ionic-team/ionic/tree/master/angular/src/directives/control-value-accessors)Steps to reproduce:
Related code:
(Will there soon be an Ionic 4 template for Stackblitz or Plunker? The Plunker-link in the issue template is still for Ionic 3)
Other information:
I can work around it by using a getter and set
[disabled]="isDemoRadioGroupDisabled"
on every ion-radio, but that's not really pretty.Ionic info: