File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ export class MatChipGrid
100
100
protected _chipInput ?: MatChipTextControl ;
101
101
102
102
protected override _defaultRole = 'grid' ;
103
- protected _uid = inject ( _IdGenerator ) . getId ( 'mat-chip-grid-' ) ;
104
103
private _errorStateTracker : _ErrorStateTracker ;
104
+ private _uid = inject ( _IdGenerator ) . getId ( 'mat-chip-grid-' ) ;
105
105
106
106
/**
107
107
* List of element ids to propagate to the chipInput's aria-describedby attribute.
@@ -138,14 +138,9 @@ export class MatChipGrid
138
138
* Implemented as part of MatFormFieldControl.
139
139
* @docs -private
140
140
*/
141
- @Input ( )
142
141
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 ;
147
143
}
148
- protected _id : string ;
149
144
150
145
/**
151
146
* Implemented as part of MatFormFieldControl.
@@ -279,9 +274,6 @@ export class MatChipGrid
279
274
parentForm ,
280
275
this . stateChanges ,
281
276
) ;
282
-
283
- // Force setter to be called in case id was not specified.
284
- this . id = this . id ;
285
277
}
286
278
287
279
ngAfterContentInit ( ) {
You can’t perform that action at this time.
0 commit comments