aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorRohit Sharma <[email protected]>2021-04-08 10:50:21 +0530
committerGitHub <[email protected]>2021-04-08 08:20:21 +0300
commit9bca1b5a8b24f597ec75d0fbbd63cff2747af1bf (patch)
treed670c51d552bf8ee9d3fb99db7f88b44430f7796 /js/tests
parent0795a778f2b9e90a92ac5a240811cc2427dc268d (diff)
downloadbootstrap-9bca1b5a8b24f597ec75d0fbbd63cff2747af1bf.tar.xz
bootstrap-9bca1b5a8b24f597ec75d0fbbd63cff2747af1bf.zip
Remove unnecessary `data-bs-backdrop="static"` (#33578)
Since the value for the `backdrop` option is available in the configuration object.
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/modal.spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tests/unit/modal.spec.js b/js/tests/unit/modal.spec.js
index 7e26c5a00..f10a932d2 100644
--- a/js/tests/unit/modal.spec.js
+++ b/js/tests/unit/modal.spec.js
@@ -585,7 +585,7 @@ describe('Modal', () => {
})
it('should not close modal when clicking outside of modal-content if backdrop = static', done => {
- fixtureEl.innerHTML = '<div class="modal" data-bs-backdrop="static" ><div class="modal-dialog"></div></div>'
+ fixtureEl.innerHTML = '<div class="modal"><div class="modal-dialog"></div></div>'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl, {
@@ -612,7 +612,7 @@ describe('Modal', () => {
})
it('should close modal when escape key is pressed with keyboard = true and backdrop is static', done => {
- fixtureEl.innerHTML = '<div class="modal" data-bs-backdrop="static"><div class="modal-dialog"></div></div>'
+ fixtureEl.innerHTML = '<div class="modal"><div class="modal-dialog"></div></div>'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl, {
@@ -669,7 +669,7 @@ describe('Modal', () => {
})
it('should not overflow when clicking outside of modal-content if backdrop = static', done => {
- fixtureEl.innerHTML = '<div class="modal" data-bs-backdrop="static"><div class="modal-dialog" style="transition-duration: 20ms;"></div></div>'
+ fixtureEl.innerHTML = '<div class="modal"><div class="modal-dialog" style="transition-duration: 20ms;"></div></div>'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl, {