diff --git a/addon/components/carousel-item.js b/addon/components/carousel-item.js index 8cee9ed..68d37b4 100644 --- a/addon/components/carousel-item.js +++ b/addon/components/carousel-item.js @@ -12,8 +12,7 @@ export default Component.extend({ index: 0, _carouselContainer: null, - init() { - this._super(...arguments); + didInsertElement() { let carouselContainer = this.nearestWithProperty('isCarouselParentContainer'); set(this, '_carouselContainer', carouselContainer);