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

Commit 86edea4

Browse files
author
Robert Messerle
committed
fix(tabs): shift+tab will now work properly when focus is on tabs
closes #4696
1 parent d5b72df commit 86edea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/tabs/js/tabsDirective.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function MdTabs () {
119119
'<md-icon md-svg-icon="md-tabs-arrow"></md-icon> ' +
120120
'</md-next-button> ' +
121121
'<md-tabs-canvas ' +
122-
'tabindex="0" ' +
122+
'tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" ' +
123123
'aria-activedescendant="tab-item-{{$mdTabsCtrl.tabs[$mdTabsCtrl.focusIndex].id}}" ' +
124124
'ng-focus="$mdTabsCtrl.redirectFocus()" ' +
125125
'ng-class="{ ' +

0 commit comments

Comments
 (0)