You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
When you have the cursor on the input field of a datepicker, an Esc key press is not propagated to the parent component (a modal box for example), so that the box does not close. When you make the change below on the "scope.keydown" function of this directive, all is ok. For me it's a bug in the two last releases :
scope.keydown = function(evt) {
if (evt.which === 27) {
evt.preventDefault();
if (scope.isOpen) { // new check here !!!
evt.stopPropagation();
}
scope.close();
} else if (evt.which === 40 && !scope.isOpen) {
scope.isOpen = true;
}
};