Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modals break after release 5.0 #33867

Closed
MichalHecko opened this issue May 7, 2021 · 2 comments
Closed

Modals break after release 5.0 #33867

MichalHecko opened this issue May 7, 2021 · 2 comments

Comments

@MichalHecko
Copy link

MichalHecko commented May 7, 2021

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...

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)
@MichalHecko
Copy link
Author

MichalHecko commented May 7, 2021 via email

@MichalHecko
Copy link
Author

MichalHecko commented May 7, 2021

Duplicate of #33840

@mdo mdo closed this as completed May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants