components
components copied to clipboard
bug(form-field): disabled styles not updating when form control is disabled/enabled with {emitEvent: false}
Is this a regression?
- [X] Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
14.2.7
Description
When you disable or enable a FormControl with parameters {emitEvent: false}, the form field its styles should update accordingly. In 15.0.0, they don't anymore.
Reproduction
Steps to reproduce: See stackblitz. Replacing 15.0.0 with 14.2.0 in package.json gives the expected behaviour. https://stackblitz.com/edit/components-issue-zwe4mt?file=src/app/example-component.html
Expected Behavior
The form field styles should be updated immediately after disabling a form control, like in version 14 of the library
Actual Behavior
The styles are only updated after you interact with the form field.
Environment
- Angular: 15.0.0
- CDK/Material: 15.0.0
- Browser(s): chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS