diff --git a/index.html b/index.html index 008e424..5f57c10 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + diff --git a/modules/conditional-input.js b/modules/conditional-input.js index 20e7bf1..c03e67f 100644 --- a/modules/conditional-input.js +++ b/modules/conditional-input.js @@ -21,7 +21,7 @@ class ConditionalInput { this.triggers = this.form.querySelectorAll(`input.${this.targetClass}`); this.followers = this.form.querySelectorAll( - `.${this.targetClass}:not(input)` + `.${this.targetClass}:not(input)`, ); this.requiredStorage = []; @@ -40,7 +40,7 @@ class ConditionalInput { that.updateFollowers( trigger.name, trigger.value, - trigger.checked + trigger.checked, ); }); }); @@ -81,7 +81,7 @@ class ConditionalInput { if (this.requiredStorage.includes(element)) { element.setAttribute("required", ""); this.requiredStorage = this.requiredStorage.filter( - (x) => x !== element + (x) => x !== element, ); }