Skip to content

Commit

Permalink
fix(module:carousel): fix carousel auto play bug (#164)
Browse files Browse the repository at this point in the history
close #161
  • Loading branch information
vthinkxie committed Aug 26, 2017
1 parent b7a073c commit 01012e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/carousel/nz-carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export class NzCarouselComponent implements AfterViewInit, OnDestroy {

setActive(content, i) {
this.clearInterval();
this.createInterval();
if (this.nzAutoPlay) {
this.createInterval();
}
this.activeIndex = i;
if (this.nzEffect !== 'fade') {
if (!this.nzVertical) {
Expand Down

0 comments on commit 01012e4

Please sign in to comment.