-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Modal doesn't open without popper.min.js #24304
Comments
Indeed Bootstrap depends on Popper.js for our Tooltips/Dropdown and Popovers plugins. @XhmikosR what do you think about moving this test : https://github.com/twbs/bootstrap/blob/v4-dev/js/src/tooltip.js#L15-L21 in our plugins constructor ? |
@Johann-S: wouldn't it then throw for people who don't want to use those components? How about we have an extra global var like |
Nope people we'll only see this error if they are trying to use our Dropdowns/Tooltips or Popovers |
@Johann-S: please make a PR and CC me. |
Finally it seems we have no solution here (see : #24306) |
Either we do what I suggested and throw in the constructor if a component which requires popper is used, or we leave it as it. Otherwise it will throw an error even though one might not use a popper descendant component. |
Maybe I don't see how you'll do that but for me it wont change anything because our plugins are wrapped into IIFE ended with : |
True that. Not sure if there's another way to do things, but with our current implementation I don't think we can do a lot. |
true, it's hard to add optional dep 😟 |
Maybe instead of throwing an error we should just use |
Modal component doesn't work without including popper.min.js before bootstrap.js, console shows the error "Bootstrap dropdown require Popper.js"
Bootstrap v4
The text was updated successfully, but these errors were encountered: