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

fix(tabs): fixes keyboard navigation issue #7098

Closed
wants to merge 1 commit into from
Closed

Conversation

robertmesserle
Copy link
Contributor

closes #2344

@robertmesserle
Copy link
Contributor Author

@jelbourn @ThomasBurleson

@@ -277,7 +277,7 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
case $mdConstant.KEY_CODE.SPACE:
case $mdConstant.KEY_CODE.ENTER:
event.preventDefault();
if (!locked) ctrl.selectedIndex = ctrl.focusIndex;
if (!locked) select(ctrl.focusIndex);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a unit test you can write that would fail before but will pass with this fix?

@ThomasBurleson ThomasBurleson added the pr: merge ready This PR is ready for a caretaker to review label Apr 19, 2016
@ThomasBurleson ThomasBurleson added this to the 1.1.0 milestone Apr 19, 2016
@ThomasBurleson ThomasBurleson self-assigned this Apr 19, 2016
@ThomasBurleson ThomasBurleson deleted the issues/2344 branch March 7, 2017 13:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui-sref on md-tab no longer works
3 participants