Skip to content

Commit edac406

Browse files
committedNov 20, 2024·
fix(material/chips): emit state changes when chip grid is disabled (#30033)
Fixes that the chip grid wasn't emitting to its `stateChanges` when it becomes disabled which meant that the parent form field might not update correctly. Fixes #30017. (cherry picked from commit 8980ad5)
1 parent 3754354 commit edac406

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/material/chips/chip-grid.ts

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export class MatChipGrid
129129
override set disabled(value: boolean) {
130130
this._disabled = value;
131131
this._syncChipsState();
132+
this.stateChanges.next();
132133
}
133134

134135
/**

0 commit comments

Comments
 (0)
Please sign in to comment.