aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-06-19 00:50:25 +0200
committerHeinrich Fenkart <[email protected]>2014-07-01 02:53:57 +0200
commit121bf6633e8704df0d69a1e44a6fbbc2dbe6f8d2 (patch)
tree3de674a95d163e4b0e24ac7d229d60e97ad336e0 /js/tests/unit
parent8deab3a95d24afa795c428572b7bfadbc7fb9ac5 (diff)
downloadbootstrap-121bf6633e8704df0d69a1e44a6fbbc2dbe6f8d2.tar.xz
bootstrap-121bf6633e8704df0d69a1e44a6fbbc2dbe6f8d2.zip
Use mousedown instead of click for backdrop click detection; fixes #13816
Diffstat (limited to 'js/tests/unit')
-rw-r--r--js/tests/unit/modal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js
index a415129aa..35a92a33b 100644
--- a/js/tests/unit/modal.js
+++ b/js/tests/unit/modal.js
@@ -154,7 +154,7 @@ $(function () {
ok($('#modal-test').length, 'modal insterted into dom')
$('.contents').click()
ok($('#modal-test').is(':visible'), 'modal visible')
- $('#modal-test').click()
+ $('#modal-test').mousedown()
})
.on('hidden.bs.modal', function () {
ok(!$('#modal-test').is(':visible'), 'modal hidden')
@@ -174,7 +174,7 @@ $(function () {
div
.on('shown.bs.modal', function () {
triggered = 0
- $('#modal-test').click()
+ $('#modal-test').mousedown()
})
.on('hide.bs.modal', function () {
triggered += 1