Removed autoselection of radio buttons in wizard

This commit is contained in:
Pax1601
2024-01-29 17:52:33 +01:00
parent 7ee3fb883b
commit be625fdca9
5 changed files with 13 additions and 6 deletions

View File

@@ -85,6 +85,14 @@
const event = new CustomEvent("signal", { detail: { callback: callback, params: params } });
document.dispatchEvent(event);
}
window.addEventListener("click", (ev) => {
var buttons = document.querySelectorAll(".button.collapse");
for (let button of buttons) {
if (button != ev.srcElement)
button.classList.remove("open");
}
})
</script>
</html>