You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is missing unsubscribe in OnDestroy of ui-carousel.component. When carousel is in autoplay mode error occurs every set interval.
Very dirty hotfix by bold in ui-carousel/ui-carousel.component.js:
UICarouselComponent.prototype.ngOnDestroy = function () {
this.nextSubject.unsubscribe();
this.prevSubject.unsubscribe(); clearInterval(this.interval);
}
This is only to show, where is problem . :)
Hotfix in application is to set up ui-carousel autoplay=false before OnDestroy is called.
The text was updated successfully, but these errors were encountered:
Thx for the hint.
Added in my Component:
import { UICarouselComponent } from 'ui-carousel/dist/src/ui-carousel/ui-carousel.component'
... @ViewChild('carousel')
private uicarousel: UICarouselComponent;
...
ngOnDestroy(): void {
clearInterval(this.uicarousel.interval);
}
Fix the error.
There is missing unsubscribe in OnDestroy of ui-carousel.component. When carousel is in autoplay mode error occurs every set interval.
Very dirty hotfix by bold in ui-carousel/ui-carousel.component.js:
UICarouselComponent.prototype.ngOnDestroy = function () {
this.nextSubject.unsubscribe();
this.prevSubject.unsubscribe();
clearInterval(this.interval);
}
This is only to show, where is problem . :)
Hotfix in application is to set up ui-carousel autoplay=false before OnDestroy is called.
The text was updated successfully, but these errors were encountered: