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

Commit

Permalink
fix(datepicker): stop propagation of esc in popup
Browse files Browse the repository at this point in the history
- Stop propagation of esc key in datepicker popup, which can propagate to undesirable elements/handlers such as the modal

Closes #5074
Fixes #5013
  • Loading branch information
wesleycho committed Dec 15, 2015
1 parent ccf161a commit 000d6c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi

scope.keydown = function(evt) {
if (evt.which === 27) {
evt.stopPropagation();
scope.isOpen = false;
element[0].focus();
}
Expand Down

0 comments on commit 000d6c3

Please sign in to comment.