We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea01c29 commit 9a6cfebCopy full SHA for 9a6cfeb
js/tests/unit/modal.js
@@ -959,4 +959,21 @@ $(function () {
959
keyboard: false
960
})
961
962
+
963
+ QUnit.test('should not overflow when clicking outside of modal-content if backdrop = static', function (assert) {
964
+ assert.expect(1)
965
+ var done = assert.async()
966
+ var $modal = $('<div class="modal" data-backdrop="static"><div class="modal-dialog" style="transition-duration: 20ms;"/></div>').appendTo('#qunit-fixture')
967
968
+ $modal.on('shown.bs.modal', function () {
969
+ $modal.trigger('click')
970
+ setTimeout(function () {
971
+ assert.strictEqual($modal[0].clientHeight, $modal[0].scrollHeight)
972
+ done()
973
+ }, 20)
974
+ })
975
+ .bootstrapModal({
976
+ backdrop: 'static'
977
978
979
0 commit comments