Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 36ecf60

Browse files
stereociliawesleycho
authored andcommitted
fix(datepicker): remove focus management on date selection by keyboard
BREAKING CHANGE: Removes focus on datepicker on selection of a date via keyboard for accessibility reasons Closes #4409
1 parent 5e3a87a commit 36ecf60

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/datepicker/datepicker.js

-2
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,8 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst
210210
return; // do nothing
211211
}
212212
$scope.select(self.activeDate);
213-
focusElement();
214213
} else if (evt.ctrlKey && (key === 'up' || key === 'down')) {
215214
$scope.toggleMode(key === 'up' ? 1 : -1);
216-
focusElement();
217215
} else {
218216
self.handleKeyDown(key, evt);
219217
self.refreshView();

0 commit comments

Comments
 (0)