From edac40645f5130a9b85eaefa2479792a93d62396 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 20 Nov 2024 08:27:43 +0100 Subject: [PATCH] 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 8980ad584c7ab7d8a0553528cbff88958e94a22a) --- src/material/chips/chip-grid.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/material/chips/chip-grid.ts b/src/material/chips/chip-grid.ts index 772611f619c4..9e0132d0e5d2 100644 --- a/src/material/chips/chip-grid.ts +++ b/src/material/chips/chip-grid.ts @@ -129,6 +129,7 @@ export class MatChipGrid override set disabled(value: boolean) { this._disabled = value; this._syncChipsState(); + this.stateChanges.next(); } /**