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

fix(carousel): fix animation from programmatic trigger #5674

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(carousel): fix animation from programmatic trigger
- Fix animations of slides when programmatically changing active slide
  index
  • Loading branch information
wesleycho committed Mar 22, 2016
commit afee9eb5a94972b3e9f82996cd101582cd912fe3
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