From ecbcbf645e8918bb2aaa2493ce54b7b69ee89f9b Mon Sep 17 00:00:00 2001 From: mertdeg2 Date: Tue, 15 Jan 2019 14:20:16 -0800 Subject: [PATCH] Adding a forgotten markForCheck in mat-chip-list (#14758) This issue causes forward tab navigation to be not the same as backward navigation. --- src/lib/chips/chip-list.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/chips/chip-list.ts b/src/lib/chips/chip-list.ts index 359dec69ff9..f292496c785 100644 --- a/src/lib/chips/chip-list.ts +++ b/src/lib/chips/chip-list.ts @@ -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