Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 44fb19b

Browse files
committed
fix(carousel): fix animation from programmatic trigger
- Fix animations of slides when programmatically changing active slide index Closes #5674 Fixes #5601
1 parent fbc873c commit 44fb19b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/carousel/carousel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ angular.module('ui.bootstrap.carousel', [])
161161

162162
var slide = slides[index];
163163
if (slide) {
164-
currentIndex = index;
165164
setActive(index);
166165
self.select(slides[index]);
166+
currentIndex = index;
167167
}
168168
}
169169
});

0 commit comments

Comments
 (0)