From bc0e0ee351d5df1075d859176c9e8959589ecdd5 Mon Sep 17 00:00:00 2001 From: Eduardo Martinez Echevarria Date: Mon, 2 Dec 2024 18:19:36 +0100 Subject: [PATCH] Fix required field condition --- app/packs/src/decidim/decidim_awesome/admin/users_autoblocks.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/packs/src/decidim/decidim_awesome/admin/users_autoblocks.js b/app/packs/src/decidim/decidim_awesome/admin/users_autoblocks.js index 77bd83d5..e709d844 100644 --- a/app/packs/src/decidim/decidim_awesome/admin/users_autoblocks.js +++ b/app/packs/src/decidim/decidim_awesome/admin/users_autoblocks.js @@ -1,6 +1,8 @@ document.addEventListener("DOMContentLoaded", () => { const configCheckBox = document.getElementById("users_autoblocks_config_perform_block"); + document.querySelector("[data-justification-message] input").required = false; + configCheckBox.addEventListener("change", (event) => { const form = event.currentTarget.form; const submitButton = form.querySelector("[data-perform-block-message]");