From 337ac1a6b56917d55da70b31f4f6bb0877f777ec Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Sun, 23 Jun 2024 16:07:41 +0200 Subject: [PATCH] shx-3d-render --- snippets/shx-loading-spinner.liquid | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/snippets/shx-loading-spinner.liquid b/snippets/shx-loading-spinner.liquid index e5166b5..d986c38 100644 --- a/snippets/shx-loading-spinner.liquid +++ b/snippets/shx-loading-spinner.liquid @@ -34,6 +34,11 @@ } showError(text) { + if(this.hideTimeout) { + clearTimeout(this.hideTimeout); + } + + this.isLoading = true; this.resetStyles(); this.container.innerHTML = ` @@ -52,6 +57,11 @@ } showErrorCharLottie(text) { + if(this.hideTimeout) { + clearTimeout(this.hideTimeout); + } + + this.isLoading = true; this.resetStyles(); this.container.innerHTML = `