From af348140210dc47e6eba5e480efacfb7d923c3d7 Mon Sep 17 00:00:00 2001 From: Saulo Klein Nery Date: Mon, 26 Dec 2022 11:10:17 -0300 Subject: [PATCH] fix: Ajustra problema do slick iniciar com width 0 --- checkout/src/arquivos/js/components/Footer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkout/src/arquivos/js/components/Footer.js b/checkout/src/arquivos/js/components/Footer.js index 7d641c0..5195d84 100644 --- a/checkout/src/arquivos/js/components/Footer.js +++ b/checkout/src/arquivos/js/components/Footer.js @@ -168,10 +168,10 @@ export default class Footer { if (mutation.type === "attributes" && mutation.attributeName === "style") { if (target.style.display === "none") { console.log("carrinho cheio"); + this.footerPrateleira.style.display = ""; if (!this.footerPrateleira.classList.contains("slick-initialized")) this.addCarrossel(); - this.footerPrateleira.style.display = ""; } else { this.footerPrateleira.style.display = "none"; console.log("carrinho vazio");