Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(datepicker): stop propagation of esc in popup
- Stop propagation of esc key in datepicker popup, which can propagate to undesirable elements/handlers such as the modal
  • Loading branch information
wesleycho committed Dec 14, 2015
commit 933393e73e83a1a3cd1e653216276f329b416726
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