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

Commit cb31b87

Browse files
tkrotoffbekos
authored andcommittedApr 12, 2014
fix(modal): give a reason of rejection when escape key pressed
Fixes #1956 Closes #1991
1 parent 004dd1d commit cb31b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/modal/modal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
200200
modal = openedWindows.top();
201201
if (modal && modal.value.keyboard) {
202202
$rootScope.$apply(function () {
203-
$modalStack.dismiss(modal.key);
203+
$modalStack.dismiss(modal.key, 'escape key press');
204204
});
205205
}
206206
}

0 commit comments

Comments
 (0)