Skip to content

Commit

Permalink
fix(angular): don't remove Swiper styles on destroy
Browse files Browse the repository at this point in the history
fixes #4443
  • Loading branch information
nolimits4web committed Apr 30, 2021
1 parent 61a91bc commit 96ad4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/angular/src/swiper.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ export class SwiperComponent implements OnInit {

ngOnDestroy() {
this._ngZone.runOutsideAngular(() => {
this.swiperRef?.destroy();
this.swiperRef?.destroy(true, false);
});
}
}

1 comment on commit 96ad4f0

@ThierryStaar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it works ! Awesome, thank you !

Please sign in to comment.