Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 9, 2023
1 parent 63ca49b commit 00d4b1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
Expand Down
6 changes: 3 additions & 3 deletions modules/conditional-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand All @@ -40,7 +40,7 @@ class ConditionalInput {
that.updateFollowers(
trigger.name,
trigger.value,
trigger.checked
trigger.checked,
);
});
});
Expand Down Expand Up @@ -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,
);
}

Expand Down

0 comments on commit 00d4b1a

Please sign in to comment.