Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 781929d

Browse files
author
Robert Messerle
committed
fix(tabs): fixes infinite digests bug in Firefox
Related to #3101
1 parent d0b385d commit 781929d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/tabs/js/tabsController.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,11 @@ function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $md
558558
var newIndex = $scope.selectedIndex,
559559
oldIndex = ctrl.lastSelectedIndex,
560560
ink = angular.element(elements.inkBar);
561-
ink.removeClass('md-left md-right');
562561
if (!angular.isNumber(oldIndex)) return;
563562
if (newIndex < oldIndex) {
564-
ink.addClass('md-left');
563+
ink.addClass('md-left').removeClass('md-right');
565564
} else if (newIndex > oldIndex) {
566-
ink.addClass('md-right');
565+
ink.addClass('md-right').removeClass('md-left');
567566
}
568567
}
569568

0 commit comments

Comments
 (0)