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

Collapse doesn't work with bundled version of bootstrap #31235

Closed
ihorbond opened this issue Jul 4, 2020 · 7 comments
Closed

Collapse doesn't work with bundled version of bootstrap #31235

ihorbond opened this issue Jul 4, 2020 · 7 comments

Comments

@ihorbond
Copy link

ihorbond commented Jul 4, 2020

Hi, I've recently switched to bundled (bootstrap.bundle.min.js) version of bootstrap (to have popper.js included among other things) and noticed my collapse panels stopped working. They work again if I switch to unbundled, please see CodePen

@Johann-S
Copy link
Member

Johann-S commented Jul 5, 2020

Hi @ihorbond

I'm unable to reproduce it see: https://codepen.io/Johann-S/pen/gOPvRKr

BTW your <script> should be at the end of your body

@ihorbond
Copy link
Author

ihorbond commented Jul 5, 2020

@Johann-S hmm looks like the integrity check in my <script> tag was the culprit on CodePen. but in my project I've downloaded the library and using it locally and script is in the end of the body..

@Johann-S
Copy link
Member

Johann-S commented Jul 5, 2020

so there is something else, BTW our docs use the bundle version

@nikduvall
Copy link

I am also having an issue where collapse stopped working. Added details to Issue #28807 as my problem seemed to be closer aligned to that issue.

@ihorbond
Copy link
Author

ihorbond commented Jul 5, 2020

Thanks, I'll try to investigate more on my end and will open a new issue if there is one. It's just super bizarre that if I change that same line of code to non bundled bootstrap collapse works as expected. What else could be at play here ? Some other conflicting library ?

@lapak10
Copy link

lapak10 commented Jul 21, 2020

@ihorbond Have you tried using any CDN provider?

@mdo
Copy link
Member

mdo commented Jul 31, 2020

Check your integrity values and what not. I removed them all and it works.

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

No branches or pull requests

6 participants