Skip to content

Commit 3ee392e

Browse files
dmitry-stepanenkocrisbeto
authored andcommitted
fix(material/tabs): avoid unnecessary updates of tab ink bar (#27031)
(cherry picked from commit a1e7de9)
1 parent ad04373 commit 3ee392e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material/tabs/ink-bar.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ export class MatInkBar {
4646
const correspondingItem = this._items.find(item => item.elementRef.nativeElement === element);
4747
const currentItem = this._currentItem;
4848

49+
if (correspondingItem === currentItem) {
50+
return;
51+
}
52+
4953
currentItem?.deactivateInkBar();
5054

5155
if (correspondingItem) {

0 commit comments

Comments
 (0)