-
-
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
Carousel still autoplays after first interaction when data-slide
/ data-bs-slide
omitted
#32640
Comments
data-slide
/ data-bs-slide
weirdnessdata-slide
/ data-bs-slide
omitted
or is this controlled via the |
tried to work out what the logic here is, but seem to have gotten myself utterly confused in the process... in v5 the options table talks about now for both my v4.5 and v5.0 examples in #32638 and #32639 i removed the |
also, it sounds like the |
now getting a weird suspicion...is there perhaps, by design, no way to actually stop autoplaying at all? but just a choice of autoplaying after interaction (default) or right on page load (carousel)? if so, that seems a horrendous omission |
Did you try adding |
urgh, good call @thenomadicmann ... that's rather obtuse design, i have to say... (same for using |
From the documentation, I would assume that a carousel only autoplays if it either has
data-bs-ride="true"
(autoplays after the first interaction) ordata-bs-ride="carousel"
(autoplays on load).When testing this on https://deploy-preview-32638--twbs-bootstrap.netlify.app/docs/5.0/components/carousel/#suppressing-touch-swiping and https://deploy-preview-32639--twbs-bootstrap.netlify.app/docs/4.5/components/carousel/#suppressing-touch-swiping it seems that omitting the
data-bs-ride
(ordata-
for 4.5) altogether still ends up behaving likedata-bs-ride="true"
, i.e. after first interaction with the prev or next button, it starts autoplaying anyway (even though the default is, supposedly,false
)Is this...expected?
The text was updated successfully, but these errors were encountered: