Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhawksley committed Nov 25, 2024
1 parent 4c51db5 commit 22b0408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ <h2 tabindex="-1" id="success2" class="success" hidden>Your submission was succe
<h2>only-validate-on-blur</h2>
<h2 tabindex="-1" id="success3" class="success" hidden>Your submission was successful</h2>
<form>
<p>All fields marked with * are required</p>

<label for="simple-field2">Desired username*:</label>
<auto-check csrf="foo" src="/demo" required only-validate-on-blur>
<input id="simple-field2" autofocus name="foo" required aria-describedby="state3" />
Expand Down
4 changes: 0 additions & 4 deletions src/auto-check-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ export class AutoCheckElement extends HTMLElement {
const input = this.input
if (!input) return

if (!this.onlyValidateOnBlur) {
this.setAttribute('validate-on-keystroke', '')
}

const checker = debounce(check.bind(null, this), 300)
const state = {check: checker, controller: null}
states.set(this, state)
Expand Down

0 comments on commit 22b0408

Please sign in to comment.