Adding a forgotten markForCheck in mat-chip-list (#14758)

This issue causes forward tab navigation to be not the same as backward navigation.
This commit is contained in:
mertdeg2
2019-01-15 14:20:16 -08:00
committed by vivian-hu
parent 0fd6456807
commit ecbcbf645e
+4 -1
View File
@@ -362,7 +362,10 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
// it back to the first chip when the user tabs out.
this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(() => {
this._tabIndex = -1;
setTimeout(() => this._tabIndex = this._userTabIndex || 0);
setTimeout(() => {
this._tabIndex = this._userTabIndex || 0;
this._changeDetectorRef.markForCheck();
});
});
// When the list changes, re-subscribe