mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user