aboutsummaryrefslogtreecommitdiff
path: root/js/dist/modal.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-04-16 13:54:07 -0700
committerMark Otto <[email protected]>2017-04-16 13:54:07 -0700
commitbc0cf36dc85cc974d92d3a7c64987aa6bc37ea25 (patch)
treed188fe5f7806b9f51678de2c2968ada349ab729e /js/dist/modal.js
parent6d64afe508bfd0bcfb5831a9a4708cef4ad88334 (diff)
downloadbootstrap-bc0cf36dc85cc974d92d3a7c64987aa6bc37ea25.tar.xz
bootstrap-bc0cf36dc85cc974d92d3a7c64987aa6bc37ea25.zip
grunt
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js
index 9c661e7e2..c083d1d8b 100644
--- a/js/dist/modal.js
+++ b/js/dist/modal.js
@@ -284,6 +284,7 @@ var Modal = function ($) {
if (this._isShown && this._config.keyboard) {
$(this._element).on(Event.KEYDOWN_DISMISS, function (event) {
if (event.which === ESCAPE_KEYCODE) {
+ event.preventDefault();
_this5.hide();
}
});