From 3e1693ad5a1ec1f5a8fec9eab336bf712952662d Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Thu, 30 May 2024 13:34:00 +0200 Subject: [PATCH] test --- snippets/shx-product-desc.liquid | 3 +++ 1 file changed, 3 insertions(+) diff --git a/snippets/shx-product-desc.liquid b/snippets/shx-product-desc.liquid index ee50df1..da41c37 100644 --- a/snippets/shx-product-desc.liquid +++ b/snippets/shx-product-desc.liquid @@ -110,6 +110,8 @@ class CustomVariantDescriptionElement extends HTMLElement { constructor() { super(); + this.style.display = 'block'; + // "variant" is the id of the variant this.variant = this.getAttribute('variant'); @@ -130,6 +132,7 @@ updateVariantDescription(id) { this.currentVariant = id; + console.log(this.variant, this.currentVariant); if(this.variant === this.currentVariant) { this.style.display = 'block'; } else {