-
-
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
Check for data-interval on the first slide of carousel - v4 #31820
Conversation
116c2a7
to
fa9c367
Compare
Waiting on feedback from V5 PR: #31818 |
js/src/carousel.js
Outdated
@@ -492,6 +503,9 @@ class Carousel { | |||
$(this._element).trigger(slidEvent) | |||
} | |||
|
|||
// does not wait for the transition to complete | |||
this._activeElement = nextElement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this change please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this PR is currently out of date (so I reverted it to draft). See #31818
@mitchellbryson can you bring this up to par with your main PR and reopen it please? |
@mitchellbryson friendly ping :) This is currently the only thing pending in our 4.6.0 project |
@XhmikosR sorry for the delay, I'll get on it later this week. |
Thanks @mitchellbryson, I really appreciate your help and sticking with us ❤ I'm going to merge this since I tested manually and it seems to do the job (and the diff LGTM anyway). |
no worries @XhmikosR, thanks for your help getting it through! |
When starting a cycle for a carousel, it only checks for a default interval, and not an interval defined on the slide element via data props. This adds a check in before creating the interval to move to the next slide.
Fixes #31716