File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
131
131
private _chipRemoveSubscription : Subscription | null ;
132
132
133
133
/** Used to prevent focus moving to chips while user is holding backspace */
134
- private _focusLastChipOnBackspace = false ;
134
+ private _focusLastChipOnBackspace : boolean ;
135
135
136
136
/** The chip input to add more chips */
137
137
protected _chipInput : MatChipTextControl ;
@@ -418,10 +418,10 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
418
418
this . _dropSubscriptions ( ) ;
419
419
}
420
420
421
-
422
421
/** Associates an HTML input element with this chip list. */
423
422
registerInput ( inputElement : MatChipTextControl ) : void {
424
423
this . _chipInput = inputElement ;
424
+ this . _focusLastChipOnBackspace = inputElement . empty ;
425
425
}
426
426
427
427
/**
You can’t perform that action at this time.
0 commit comments