From d4c54222f8099150f6332694e3a11d0b3ee1c10f Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Thu, 30 May 2024 13:42:39 +0200 Subject: [PATCH] test --- snippets/shx-product-desc.liquid | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snippets/shx-product-desc.liquid b/snippets/shx-product-desc.liquid index da41c37..26362f5 100644 --- a/snippets/shx-product-desc.liquid +++ b/snippets/shx-product-desc.liquid @@ -110,7 +110,6 @@ class CustomVariantDescriptionElement extends HTMLElement { constructor() { super(); - this.style.display = 'block'; // "variant" is the id of the variant @@ -125,6 +124,10 @@ this.updateVariantDescription(id); } + connectedCallback() { + this.style.display = 'none'; + } + disconnectedCallback() { // Clean up the element when it is removed from the DOM. }