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

Commit 6c53d11

Browse files
author
Robert Messerle
committed
fix(tabs): adds ui-sref/ng-href support to tabs
Closes #2344
1 parent 025d3dd commit 6c53d11

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/tabs/js/tabDirective.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ function MdTab () {
103103
scope: scope,
104104
parent: scope.$parent,
105105
index: index,
106+
element: element,
106107
template: element.find('md-tab-body').html(),
107108
label: element.find('md-tab-label').html()
108109
}, index);

src/components/tabs/js/tabsController.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $md
136136
function select (index) {
137137
if (!locked) ctrl.focusIndex = $scope.selectedIndex = index;
138138
ctrl.lastClick = true;
139+
ctrl.tabs[index].element.triggerHandler('click');
139140
}
140141

141142
function scroll (event) {

0 commit comments

Comments
 (0)