bug(mat-chip-grid): mat-form-field disabled state doesn't get updated when setting [disabled]=false on the mat-chip-grid element #30017
Labels
area: material/chips
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
The
mat-form-field
element wrappingmat-chip-grid
appears to not catch the disabled state change from themat-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:
setTimeout(() => { this.disabled = false; }, 1000);
the element still appears disabledExpected 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
The text was updated successfully, but these errors were encountered: