From: Rohit Sharma Date: Thu, 8 Apr 2021 05:20:21 +0000 (+0530) Subject: Remove unnecessary `data-bs-backdrop="static"` (#33578) X-Git-Tag: v5.0.0~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bca1b5a8b24f597ec75d0fbbd63cff2747af1bf;p=thirdparty%2Fbootstrap.git Remove unnecessary `data-bs-backdrop="static"` (#33578) Since the value for the `backdrop` option is available in the configuration object. --- diff --git a/js/tests/unit/modal.spec.js b/js/tests/unit/modal.spec.js index 7e26c5a00c..f10a932d2a 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 = '' + fixtureEl.innerHTML = '' 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 = '' + fixtureEl.innerHTML = '' 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 = '' + fixtureEl.innerHTML = '' const modalEl = fixtureEl.querySelector('.modal') const modal = new Modal(modalEl, {