Nice, this would have been helpful in some older projects. I am trying to run away from jQuery and this looks like a nice solution when there is no choice (BS4 as an example).
One thing I recently figured out is that if you're running Bootstrap's master branch, you're essentially running Bootstrap 5. BS5 checks for the presence of jQuery, and if it finds it, you'll get jQuery events. If there's no jQuery present, it'll emit DOM events.
I'm thrilled, now that I know. But man, this would have saved a lot of time.
For what it's worth, BS5 has been almost perfectly drop-in compatible with BS4 so far as I can tell.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice, this would have been helpful in some older projects. I am trying to run away from jQuery and this looks like a nice solution when there is no choice (BS4 as an example).
One thing I recently figured out is that if you're running Bootstrap's master branch, you're essentially running Bootstrap 5. BS5 checks for the presence of jQuery, and if it finds it, you'll get jQuery events. If there's no jQuery present, it'll emit DOM events.
I'm thrilled, now that I know. But man, this would have saved a lot of time.
For what it's worth, BS5 has been almost perfectly drop-in compatible with BS4 so far as I can tell.