From 771bc727ac32940ce6c004ca068837253705bfe2 Mon Sep 17 00:00:00 2001 From: yoannchb-pro <71560747+yoannchb-pro@users.noreply.github.com> Date: Mon, 20 Mar 2023 21:32:56 -0400 Subject: [PATCH] v1.0.0 --- reset-moodle-inputs/reset.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reset-moodle-inputs/reset.js b/reset-moodle-inputs/reset.js index 6d5d10a..5f0cf3d 100644 --- a/reset-moodle-inputs/reset.js +++ b/reset-moodle-inputs/reset.js @@ -2,12 +2,15 @@ for (const option of document.querySelectorAll("option")) { option.selected = false; + option.disabled = false; + option.closest("select").disabled = false; } for (const input of document.querySelectorAll( 'input[type="radio"], input[type="checkbox"]' )) { input.checked = false; + input.disabled = false; } for (const icon of document.querySelectorAll(".text-danger, .text-success")) {