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

Guard against bootstrap variable not being defined #2638

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

cbeer
Copy link
Member

@cbeer cbeer commented Feb 25, 2022

fixes #2612

  • Bootstrap 5.x always creates window.bootstrap.
  • Bootstrap 4.x creates window.bootstrap if the application loads bootstrap
  • Bootstrap 4.x injects its classes directly on the window if the application loads bootstrap-sprockets

jcoyne added a commit that referenced this pull request Feb 25, 2022
Backport #2638: Guard against bootstrap variable not being defined; fixes #2612
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

7.22.0 broke Javascript for me: Uncaught ReferenceError: bootstrap is not defined
3 participants