From 7dfcc9503ec369df29d16a6c5e1a33f66eee4c8f Mon Sep 17 00:00:00 2001 From: jrmartin Date: Tue, 22 Sep 2020 16:10:52 -0700 Subject: [PATCH] Fix to avoid slick() component be created more than once --- .../interface/query/customComponents/slideshowImageComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geppetto-client/js/components/interface/query/customComponents/slideshowImageComponent.js b/geppetto-client/js/components/interface/query/customComponents/slideshowImageComponent.js index d8f34c402..569ce1d42 100644 --- a/geppetto-client/js/components/interface/query/customComponents/slideshowImageComponent.js +++ b/geppetto-client/js/components/interface/query/customComponents/slideshowImageComponent.js @@ -114,7 +114,7 @@ define(function (require) { // apply carousel if (this.isCarousel) { var slickDivElement = $('#' + this.imageContainerId + '.slickdiv'); - slickDivElement.slick(); + slickDivElement.not('.slick-initialized').slick(); // reload slick carousel if it's first time clicking on arrow in any direction slickDivElement.find(".slick-arrow").on("click", function () {