diff options
| author | Heinrich Fenkart <[email protected]> | 2014-06-19 00:50:25 +0200 |
|---|---|---|
| committer | Heinrich Fenkart <[email protected]> | 2014-07-01 02:53:57 +0200 |
| commit | 121bf6633e8704df0d69a1e44a6fbbc2dbe6f8d2 (patch) | |
| tree | 3de674a95d163e4b0e24ac7d229d60e97ad336e0 /js/modal.js | |
| parent | 8deab3a95d24afa795c428572b7bfadbc7fb9ac5 (diff) | |
| download | bootstrap-121bf6633e8704df0d69a1e44a6fbbc2dbe6f8d2.tar.xz bootstrap-121bf6633e8704df0d69a1e44a6fbbc2dbe6f8d2.zip | |
Use mousedown instead of click for backdrop click detection; fixes #13816
Diffstat (limited to 'js/modal.js')
| -rw-r--r-- | js/modal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/modal.js b/js/modal.js index 29eedf117..060ea6b82 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]) |
