-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/radio
Description
We noticed that for the mat-radio-group
in Ivy, the writeValue
is called after the nested mat-radio
's have been initialized, but before the @ContentChildren
are resolved. This means the selected
property of the mat-radio-group
will not be set.
This works in ViewEngine, as the writeValue
is called before the ngOnInit
of the mat-radio
's are called (which in turn assigns checked
, which in turn assigns selected
on the group).
Reproduction
Use StackBlitz to reproduce your issue:
https://stackblitz.com/edit/angular-ukua2k?file=src%2Fapp%2Fradio-overview-example.html
Steps to reproduce:
- Open StackBlitz example
- Ensure Ivy is enabled
- See
Selected Value:
being null
Expected Behavior
Selected Value: "2"
Actual Behavior
Selected Value: null
Environment
- Angular: 11.0.2
- CDK/Material: 11.0.1
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10
jeripeierSBB
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/radio