1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 13:29:06 +02:00

carousel should not cycle when there is no data-ride on init (#27968)

This commit is contained in:
Johann-S
2019-01-04 17:15:01 +01:00
committed by XhmikosR
parent d4b5b4b78c
commit 89a73f100e
3 changed files with 49 additions and 2 deletions

View File

@@ -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()
}