Skip to content

Commit

Permalink
Merge pull request #10073 from nishant203/master
Browse files Browse the repository at this point in the history
Fixed  #10051 - Carousel does not always display dynamically added items
  • Loading branch information
yigitfindikli committed Apr 5, 2021
2 parents 634bc63 + 30b61cb commit 607f839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/carousel/carousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class Carousel implements AfterContentInit {
this._oldNumScroll = this._numScroll;
this.prevState.numScroll = this._numScroll;
this.prevState.numVisible = this._numVisible;
this.prevState.value = this._value;
this.prevState.value = [...this._value];

if (this.totalDots() > 0 && this.itemsContainer.nativeElement) {
this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100/ this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100/ this._numVisible)}%, 0, 0)`;
Expand Down

0 comments on commit 607f839

Please sign in to comment.