Skip to content

Commit

Permalink
fix(tabs): tab nav bar not disabling pagination animation (#18886)
Browse files Browse the repository at this point in the history
Fixes the pagination animation not being disabled when using the `NoopAnimationsModule`.
  • Loading branch information
crisbeto authored and mmalerba committed Apr 14, 2020
1 parent bec1889 commit a6e5423
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/material/tabs/tab-nav-bar/tab-nav-bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
</div>

<div class="mat-tab-link-container" #tabListContainer (keydown)="_handleKeydown($event)">
<div class="mat-tab-list" #tabList (cdkObserveContent)="_onContentChanges()">
<div
class="mat-tab-list"
[class._mat-animation-noopable]="_animationMode === 'NoopAnimations'"
#tabList
(cdkObserveContent)="_onContentChanges()">
<div class="mat-tab-links">
<ng-content></ng-content>
</div>
Expand Down

0 comments on commit a6e5423

Please sign in to comment.