From e94ce5414ac4da5b9e9420305717fae6e61b5ff8 Mon Sep 17 00:00:00 2001 From: Fran Rouco Date: Mon, 28 Oct 2024 16:29:49 +0100 Subject: [PATCH] Not force move the slick carousel to the first slide by default --- addons/setup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/setup.js b/addons/setup.js index 03e07cd..94a1a28 100644 --- a/addons/setup.js +++ b/addons/setup.js @@ -89,9 +89,9 @@ module.exports = async (page, scenario, config) => { 'autoplay': false, }, true); }); - } - $(carousel).slick('slickGoTo', 0, true); + $(carousel).slick('slickGoTo', 0, true); + } }); if (slickCarousels.length > 0) { const head = document.head || document.getElementsByTagName('head')[0];