diff options
| author | Pierre Vanduynslager <[email protected]> | 2017-03-28 17:43:16 -0400 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2017-03-28 23:43:15 +0200 |
| commit | 48c5efa4c3c439d8720b8475ec3e372c6974a12a (patch) | |
| tree | 927c262f444f4aaeb0f598cf35ab7b1b385ae76a /js/tests/visual/modal.html | |
| parent | ce0e2f8e76dade4b6ec9d6eb541c6988739f0653 (diff) | |
| download | bootstrap-48c5efa4c3c439d8720b8475ec3e372c6974a12a.tar.xz bootstrap-48c5efa4c3c439d8720b8475ec3e372c6974a12a.zip | |
Fix JS components console error "Error: <Component> is transitioning"
Diffstat (limited to 'js/tests/visual/modal.html')
| -rw-r--r-- | js/tests/visual/modal.html | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html index d971a45c7..e999514f7 100644 --- a/js/tests/visual/modal.html +++ b/js/tests/visual/modal.html @@ -187,26 +187,6 @@ } } - // Should throw an error because modal is in transition - function testModalTransitionError() { - var err = false - // Close #myModal - $('#myModal').on('shown.bs.modal', function () { - $('#myModal').modal('hide').off('shown.bs.modal') - if (!err) { - alert('No error thrown for : testModalTransitionError') - } - }) - - try { - $('#myModal').modal('show').modal('hide') - } - catch (e) { - err = true - console.error(e.message) - } - } - $(function () { $('[data-toggle="popover"]').popover() $('[data-toggle="tooltip"]').tooltip() @@ -219,7 +199,6 @@ $('#firefoxModal').on('focus', reportFirefoxTestResult.bind(false)) $('#ff-bug-input').on('focus', reportFirefoxTestResult.bind(true)) }) - testModalTransitionError() }) </script> </body> |
