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

Explicitly test that bootstrap and bootstrap.Modal are defined #2695

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

cjcolvar
Copy link
Contributor

@cjcolvar cjcolvar commented Apr 27, 2022

I was attempting to upgrade my blacklight-based app to 7.x from the latest 6.x and ran into an issue where the more >> facet modal failed to open due to bootstrap not being defined. Prior tickets and conversation seemed to point to including bootstrap in my sprockets asset pipeline instead of bootstrap-sprockets, but I was already only using the bootstrap include. Adding an explicit check for 'undefined' worked for me, but I'm unsure if there is a better way to solve this or if by doing this it is breaking the bootstrap 5+ scenario.

I ran the rollup script to compile the changes to blacklight.js since that is what my application was pulling in via sprockets. I can remove these changes to blacklight.js if it is supposed to be handled in a different process.

Previous work:

@jcoyne jcoyne merged commit e56e187 into release-7.x Apr 27, 2022
@jcoyne jcoyne deleted the bootstrap_undefined branch April 27, 2022 14:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants