2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03:00

Use mousedown instead of click for backdrop click detection; fixes #13816

This commit is contained in:
Heinrich Fenkart
2014-06-19 00:50:25 +02:00
parent 8deab3a95d
commit 121bf6633e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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])