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

Commit 000d6c3

Browse files
committed
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 Closes #5074 Fixes #5013
1 parent ccf161a commit 000d6c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/datepicker/datepicker.js

+1
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi
746746

747747
scope.keydown = function(evt) {
748748
if (evt.which === 27) {
749+
evt.stopPropagation();
749750
scope.isOpen = false;
750751
element[0].focus();
751752
}

0 commit comments

Comments
 (0)