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

Commit

Permalink
fix(tabs): fixes md-swipe-content support
Browse files Browse the repository at this point in the history
Closes #3225
  • Loading branch information
Robert Messerle committed Jul 16, 2015
1 parent aa1e47d commit 0982c76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tabs/js/tabsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,12 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
*/
function incrementSelectedIndex (inc) {
var newIndex,
index = ctrl.focusIndex;
index = ctrl.selectedIndex;
for (newIndex = index + inc;
ctrl.tabs[newIndex] && ctrl.tabs[newIndex].scope.disabled;
newIndex += inc) {}
if (ctrl.tabs[newIndex]) {
ctrl.focusIndex = newIndex;
ctrl.selectedIndex = newIndex;
}
}

Expand Down

0 comments on commit 0982c76

Please sign in to comment.