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

Commit

Permalink
fix(carousel): fix animation from programmatic trigger
Browse files Browse the repository at this point in the history
- Fix animations of slides when programmatically changing active slide
  index

Closes #5674
Fixes #5601
  • Loading branch information
wesleycho committed Mar 22, 2016
1 parent fbc873c commit 44fb19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/carousel/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ angular.module('ui.bootstrap.carousel', [])

var slide = slides[index];
if (slide) {
currentIndex = index;
setActive(index);
self.select(slides[index]);
currentIndex = index;
}
}
});
Expand Down

0 comments on commit 44fb19b

Please sign in to comment.