From 7a8682eab62710d60adc70dfc27d769c810be95e Mon Sep 17 00:00:00 2001 From: Martin Magana Date: Sat, 12 Sep 2015 15:27:27 -0700 Subject: [PATCH] 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 --- src/datepicker/datepicker.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/datepicker/datepicker.js b/src/datepicker/datepicker.js index f72baec560..d17a95ff7b 100644 --- a/src/datepicker/datepicker.js +++ b/src/datepicker/datepicker.js @@ -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();