-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
use only data target to query elements in our plugin #31185
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
base: main
Are you sure you want to change the base?
Conversation
this made me remember a bugbear that i kept meaning to post #31186 |
@patrickhlauke I think it'll fix your issue too 🤔 |
yeah i meant it more as "once this lands, we should also do this" and then avoid unnecessarily using |
f5ee5d3
to
6fa900a
Compare
The "problem" with swapping Do note that we should probably try to keep the breaking changes to a minimum to make things easier for people to upgrade. Or perhaps, we should make them all at once :P I'd definitely like to hear @mdo's opinion before proceeding with this. Have |
6fa900a
to
686b88c
Compare
yup, certainly for carousel, possibly other places like tabs (navs with js). let's discuss in #31186
Was trying to get some of these breaking ones in while 5 is still in alpha...otherwise it'll be another 2-3 years before we can change anything again ;) |
That's not true since we have moved to a faster release cycle. :) |
Any status update here? |
@mdo it seems we are waiting for your decision |
Wouldn't this be a degradation for JS-less users? |
With this PR we'll rely only on
data-target
to find targeted elements. The only exception is our Scrollspy which use a lot of link, it'll still be possible to use selectors in links for this plugin.Related to: #31160
Preview: https://deploy-preview-31185--twbs-bootstrap.netlify.app/