Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2019-01-04 19:15:01 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-01-04 19:15:01 +0300
commit89a73f100e7a3c765314e5cff0eeaf9c051f2944 (patch)
tree7acd975e91e78372af7cb234e94a54056aa93a61 /js/src/carousel.js
parentd4b5b4b78c936f9a9d38d52ca5be1cbdee26ee54 (diff)
carousel should not cycle when there is no data-ride on init (#27968)
Diffstat (limited to 'js/src/carousel.js')
-rw-r--r--js/src/carousel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js
index 21ec57a2e3..a43d86b189 100644
--- a/js/src/carousel.js
+++ b/js/src/carousel.js
@@ -531,7 +531,7 @@ class Carousel {
throw new TypeError(`No method named "${action}"`)
}
data[action]()
- } else if (_config.interval) {
+ } else if (_config.interval && _config.ride) {
data.pause()
data.cycle()
}