You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did an upgrade from Bootstrap 5.0-beta3 to Bootstrap 5.0.
Code, that worked in Beta3 is now not working. It is that part, when modal's constructor initializes Backdrop...
this.modal = new bootstrap.Modal($('div.modal')[0], {
backdrop: 'static'
});
I've got:
TypeError: BACKDROP: Option "rootElement" provided type "null" but expected type "element".
at index.js:130
at Array.forEach (<anonymous>)
at l (index.js:124)
at xe._getConfig (backdrop.js:92)
at new xe (backdrop.js:33)
at Ne._initializeBackDrop (modal.js:218)
at new Ne (modal.js:84)
The text was updated successfully, but these errors were encountered:
On Fri, May 7, 2021 at 8:03 PM mscdex ***@***.***> wrote:
I just ran into this same exact issue coming from beta3. Except I only
have something like:
var modal = new bootstrap.Modal('#modalThatExists');// orvar modal = new bootstrap.Modal(document.getElementById('modalThatExists'));
Neither of them work in 5.0 final but do in 5.0-beta3.
@MichalHecko <https://github.com/MichalHecko> How did you resolve this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33867 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADX5VJRXBR7D656MYQBCTVTTMQTOLANCNFSM44JCN7IQ>
.
OS: Windows 10
Browser: Opera 76
I did an upgrade from Bootstrap 5.0-beta3 to Bootstrap 5.0.
Code, that worked in Beta3 is now not working. It is that part, when modal's constructor initializes Backdrop...
I've got:
The text was updated successfully, but these errors were encountered: