From 337af4b47eddc690e7037104e78703040ad79104 Mon Sep 17 00:00:00 2001 From: Mihail Todorov Date: Mon, 15 Jul 2024 16:35:29 +0300 Subject: [PATCH] Add isRendered --- components/carousel/package.json | 2 +- components/carousel/script.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/carousel/package.json b/components/carousel/package.json index 360e4e4b..1fc6ab76 100644 --- a/components/carousel/package.json +++ b/components/carousel/package.json @@ -1,6 +1,6 @@ { "name": "coherent-gameface-carousel", - "version": "1.3.0", + "version": "1.4.0", "description": "A component for Coherent Labs Gameface.", "main": "script.js", "repository": { diff --git a/components/carousel/script.js b/components/carousel/script.js index fd5cc126..ac7f292a 100644 --- a/components/carousel/script.js +++ b/components/carousel/script.js @@ -56,6 +56,8 @@ class Carousel extends BaseComponent { this.shouldShowNavArrow(DIRECTIONS.RIGHT, this.nextStepIndex(this.navArrowStepSize)); this.shouldShowNavArrow(DIRECTIONS.LEFT, this.prevStepIndex(this.navArrowStepSize)); + + this.isRendered = true; }); }