]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Check for data-interval on the first slide of carousel (#31818)
authorMitchell Bryson <mitchelljbryson@gmail.com>
Sun, 1 Nov 2020 12:36:50 +0000 (12:36 +0000)
committerGitHub <noreply@github.com>
Sun, 1 Nov 2020 12:36:50 +0000 (14:36 +0200)
commit3a5f9f5cf004ff02eca0b1680b461b79dd61d980
tree7f49a675adce8f14b678652a415271077bcdc75d
parentcb456429188103140d70341d5eb0967017a71746
Check for data-interval on the first slide of carousel (#31818)

* check for data-interval on the first slide of carousel

* add updateInterval method for elements of a carousel

* add test for carousel interval being set during cycle

* update activeElement as soon as slide has finished (before transition end)

* only updateInterval before using it

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
js/src/carousel.js
js/tests/unit/carousel.spec.js