aboutsummaryrefslogtreecommitdiff
path: root/js/modal.js
diff options
context:
space:
mode:
authorJacob <[email protected]>2014-07-06 00:01:57 -0700
committerJacob <[email protected]>2014-07-06 00:01:57 -0700
commit5830febd9a37bc147ae5f368607e5dcdc562ddf9 (patch)
treefa0f284923b1135a9e17c335d4a3a7f380773897 /js/modal.js
parentfc29dfab1b267cfefee3652cb175ca736b6ede6b (diff)
parent121bf6633e8704df0d69a1e44a6fbbc2dbe6f8d2 (diff)
downloadbootstrap-5830febd9a37bc147ae5f368607e5dcdc562ddf9.tar.xz
bootstrap-5830febd9a37bc147ae5f368607e5dcdc562ddf9.zip
Merge pull request #13855 from hnrch02/modal-mousedown
Use mousedown instead of click for backdrop click detection; fixes #13816
Diffstat (limited to 'js/modal.js')
-rw-r--r--js/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/modal.js b/js/modal.js
index 92eff470a..fdefdd2c5 100644
--- a/js/modal.js
+++ b/js/modal.js
@@ -166,7 +166,7 @@
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
.appendTo(this.$body)
- this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
+ this.$element.on('mousedown.dismiss.bs.modal', $.proxy(function (e) {
if (e.target !== e.currentTarget) return
this.options.backdrop == 'static'
? this.$element[0].focus.call(this.$element[0])