Skip to content

Commit 3bd41eb

Browse files
committed
fix
1 parent d218cf8 commit 3bd41eb

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/material/chips/chip-grid.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export class MatChipGrid
100100
protected _chipInput?: MatChipTextControl;
101101

102102
protected override _defaultRole = 'grid';
103-
protected _uid = inject(_IdGenerator).getId('mat-chip-grid-');
104103
private _errorStateTracker: _ErrorStateTracker;
104+
private _uid = inject(_IdGenerator).getId('mat-chip-grid-');
105105

106106
/**
107107
* List of element ids to propagate to the chipInput's aria-describedby attribute.
@@ -138,14 +138,9 @@ export class MatChipGrid
138138
* Implemented as part of MatFormFieldControl.
139139
* @docs-private
140140
*/
141-
@Input()
142141
get id(): string {
143-
return this._chipInput ? this._chipInput.id : this._id;
144-
}
145-
set id(value: string) {
146-
this._id = value || this._uid;
142+
return this._chipInput ? this._chipInput.id : this._uid;
147143
}
148-
protected _id: string;
149144

150145
/**
151146
* Implemented as part of MatFormFieldControl.
@@ -279,9 +274,6 @@ export class MatChipGrid
279274
parentForm,
280275
this.stateChanges,
281276
);
282-
283-
// Force setter to be called in case id was not specified.
284-
this.id = this.id;
285277
}
286278

287279
ngAfterContentInit() {

0 commit comments

Comments
 (0)