-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Closed
Copy link
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
14
Description
This is a regression, before the [disabled] attribute of a form element (radio, toggle etc) would take precedence, but now this attribute appears to be ignored entirely if the component is bound to a form control
Before:
https://stackblitz.com/edit/angular-pw8j5w?file=src/app/radio-ng-model-example.html

After:
https://stackblitz.com/edit/angular-tomdov?file=src/app/radio-ng-model-example.html

Note the content of these demos are identical other than the different bootstrapped version, one is showing the control as disabled (v14) and the other as enabled (v15)
Reproduction
Steps to reproduce:
- Set up a form component with a [disabled]="true" attribute
- Attach a formControl via [formControl] with no disabled state set (the default)
- Inspect the ui
Expected Behavior
Form component should be disabled
Actual Behavior
Form component is not disabled
Environment
- Angular: 15.0.0
- CDK/Material: 15.0.3
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
Metadata
Metadata
Assignees
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team