Is this a regression?
The previous version in which this bug was not present was
No response
Description
The mat-form-field element wrapping mat-chip-grid appears to not catch the disabled state change from the mat-chip-grid element.
If you init the mat-chip-grid element with [disabled]=true then later you turn it off to false, the element still appears disabled. You need to click on it for it so it doesn't appears disabled anymore.
Reproduction
StackBlitz link: https://stackblitz.com/edit/gmyir1
Steps to reproduce:
- Wait one second
- Despite the
setTimeout(() => { this.disabled = false; }, 1000); the element still appears disabled
- Click on it so it doesn't appears disabled anymore
Expected Behavior
The mat-form-field shouldn't appears disabled if the mat-chip-grid isn't.
Actual Behavior
The mat-form-field appears disabled no matter what if mat-chip-grid.disabled is set to true on init.
Environment
- Angular: 18.2.12
- CDK/Material: 18.2.12
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows