Skip to content

Commit

Permalink
fix(material/chips): emit state changes when chip grid is disabled (#…
Browse files Browse the repository at this point in the history
…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)
  • Loading branch information
crisbeto committed Nov 20, 2024
1 parent 3754354 commit edac406
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/material/chips/chip-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export class MatChipGrid
override set disabled(value: boolean) {
this._disabled = value;
this._syncChipsState();
this.stateChanges.next();
}

/**
Expand Down

0 comments on commit edac406

Please sign in to comment.