Skip to content

Commit

Permalink
fix(datepicker): remove focus management on date selection by keyboard
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

Removes focus on datepicker on selection of a date via keyboard for accessibility reasons

Closes angular-ui#4409
  • Loading branch information
stereocilia authored and jasonaden committed Sep 30, 2015
1 parent efed2a1 commit 7a8682e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,8 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst
return; // do nothing
}
$scope.select(self.activeDate);
focusElement();
} else if (evt.ctrlKey && (key === 'up' || key === 'down')) {
$scope.toggleMode(key === 'up' ? 1 : -1);
focusElement();
} else {
self.handleKeyDown(key, evt);
self.refreshView();
Expand Down

0 comments on commit 7a8682e

Please sign in to comment.