fix: Ajustra problema do slick iniciar com width 0
This commit is contained in:
parent
e71d4883a2
commit
af34814021
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user