From 44824761f815fff5aa80907afa5ecafe621358c7 Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Fri, 27 Dec 2024 15:00:28 +0100 Subject: [PATCH] Reset form visibility and attributes in Zen Rices component on cancel action --- src/browser/base/zen-components/ZenRices.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/browser/base/zen-components/ZenRices.mjs b/src/browser/base/zen-components/ZenRices.mjs index b449d8550..bf31eef68 100644 --- a/src/browser/base/zen-components/ZenRices.mjs +++ b/src/browser/base/zen-components/ZenRices.mjs @@ -216,6 +216,12 @@ document.getElementById("zen-rice-share-name").value = ""; document.getElementById("zen-rice-share-author").value = ""; document.getElementById("zen-rice-share-save").disabled = true; + document.getElementById("zen-rice-share-first-form").removeAttribute("fade-out"); + document.getElementById("zen-rice-share-second-form").setAttribute("hidden", "true"); + document.getElementById("zen-rice-share-second-form").removeAttribute("fade-out"); + document.getElementById("zen-rice-share-error").setAttribute("hidden", "true"); + document.getElementById("zen-rice-share-success").setAttribute("hidden", "true"); + document.getElementById("zen-rice-share-options").setAttribute("zen-collapsed", "true"); } cancel() {