aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorPierre Vanduynslager <[email protected]>2017-04-09 18:16:37 -0400
committerGitHub <[email protected]>2017-04-09 18:16:37 -0400
commitd3fbebefcd8a0931f51341c8fe59a075578753c8 (patch)
tree67683e5fb0fb91d5213bb57286f9b3bdcd8b8e45 /js/src
parentfe72daf2b34263d3cfc9bc77e9998cd22adfa34d (diff)
parent278ddd0acd9700917791af0b67d44bc21ed17498 (diff)
downloadbootstrap-d3fbebefcd8a0931f51341c8fe59a075578753c8.tar.xz
bootstrap-d3fbebefcd8a0931f51341c8fe59a075578753c8.zip
Merge branch 'v4-dev' into dropdown-keyboard
Diffstat (limited to 'js/src')
-rw-r--r--js/src/modal.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index 779b9a402..02d463945 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -289,6 +289,7 @@ const Modal = (($) => {
if (this._isShown && this._config.keyboard) {
$(this._element).on(Event.KEYDOWN_DISMISS, (event) => {
if (event.which === ESCAPE_KEYCODE) {
+ event.preventDefault()
this.hide()
}
})