@eui/ecl 15.0.0-rc.10 → 15.0.0-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3930,7 +3930,7 @@ class EclCarouselComponent extends ECLBaseDirective {
3930
3930
  this.renderer = renderer;
3931
3931
  this.cdkBreakpointObserver = cdkBreakpointObserver;
3932
3932
  this.cd = cd;
3933
- this.isAutoplay = false;
3933
+ this.isAutoplay = true;
3934
3934
  this.playInterval = 5000;
3935
3935
  this.slide = new EventEmitter();
3936
3936
  this.isPlaying = false;
@@ -4023,11 +4023,13 @@ class EclCarouselComponent extends ECLBaseDirective {
4023
4023
  this.activateSlide(this.getPreviousSlide());
4024
4024
  }
4025
4025
  activateSlide(slide) {
4026
- this.slides.forEach(item => {
4027
- item.isCurrent = false;
4028
- });
4029
- slide.isCurrent = true;
4030
- this.slide.next(new EclSlideEvent(slide));
4026
+ if (slide) {
4027
+ this.slides.forEach(item => {
4028
+ item.isCurrent = false;
4029
+ });
4030
+ slide.isCurrent = true;
4031
+ this.slide.next(new EclSlideEvent(slide));
4032
+ }
4031
4033
  }
4032
4034
  startPlaying() {
4033
4035
  this.isPlaying = true;