Skip to content

Commit

Permalink
Fix required field condition
Browse files Browse the repository at this point in the history
  • Loading branch information
entantoencuanto committed Dec 2, 2024
1 parent 59ed807 commit bc0e0ee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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]");
Expand Down

0 comments on commit bc0e0ee

Please sign in to comment.