Please disable your adblock and script blockers to view this page

v5 without jQuery by Johann-S ? Pull Request #23586 ? twbs/bootstrap


GitHub
Alert
jQuery
Tooltips
@tmorehouse
ScrollSpy
@Johann-S
MSEdge


XhmikosR
Herst
Vanilla
👍@Johann-S
-Vue

No matching tags

No matching tags

No matching tags

No matching tags

No matching tags

Positivity     43.00%   
   Negativity   57.00%
The New York Times
SOURCE: https://github.com/twbs/bootstrap/pull/23586
Write a review: Hacker News
Summary

If you're using libraries that require jQuery, you can use the jQuery version, and if not, the non-jQuery one.We will have only one release without jQuery but if we detect jQuery you'll be able to use Bootstrap's plugin as before 👍How large will be bootstrap.min.js without jQuery?that's too early to have an estimation @danijelGombac sorry, but you can follow the development 👍If you are interested in Vanilla JS versions of tooltip, popover, and scrollspy, We have versions that we use in Bootstrap-Vue v1.0.0.beta.7 (see in action at docs)We have a few extra features added to Tooltips and popovers (such as a new blur leave event... There are only a few Vue.js centric items in the tooltip/popover classes (such as event emitting)Boostrap-Vue is quite interested in the jQuery free version of some of the plugins, as we might be able to direclty import some of these modues (or the classes), to replace some of our code.We have just finished porting ScrollSpy over to vanilla js (with some helper dom functions we have created).If you like, I could see if I can port our vanilla version to this branch as a PR (the main things to change would be the event signatures)Sure @tmorehouse this branch is open to everyone who wants to help us 👍OK, I ill try porting over in the next few days.@alekitto it seems we have issue on IE with your last commit see : https://saucelabs.com/beta/tests/af6abf5c5275433080920e7f34a234cc/commands#12 and https://travis-ci.org/twbs/bootstrap/jobs/276457805#L718@alekitto it's still failed on Edge see :@Johann-S It seems that MSEdge resets the defaultPrevented flag upon dispatchEvent, so when the event is re-dispatched after being passed into the jQuery event system the flag is set to false.

As said here by twbs