Skip to content

Commit

Permalink
fix(kit): scroll over carousel items (#6787)
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelTr authored Feb 14, 2024
1 parent b72b1ec commit b16dbc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/kit/components/carousel/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export class TuiCarouselComponent {
}

next(): void {
if (this.items && this.index === this.items.length - this.itemsCount) {
return;
}

this.updateIndex(this.index + 1);
}

Expand Down

0 comments on commit b16dbc2

Please sign in to comment.