Skip to content

Commit 22b0408

Browse files
committed
remove dead code
1 parent 4c51db5 commit 22b0408

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ <h2 tabindex="-1" id="success2" class="success" hidden>Your submission was succe
4141
<h2>only-validate-on-blur</h2>
4242
<h2 tabindex="-1" id="success3" class="success" hidden>Your submission was successful</h2>
4343
<form>
44+
<p>All fields marked with * are required</p>
45+
4446
<label for="simple-field2">Desired username*:</label>
4547
<auto-check csrf="foo" src="/demo" required only-validate-on-blur>
4648
<input id="simple-field2" autofocus name="foo" required aria-describedby="state3" />

src/auto-check-element.ts

-4
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ export class AutoCheckElement extends HTMLElement {
101101
const input = this.input
102102
if (!input) return
103103

104-
if (!this.onlyValidateOnBlur) {
105-
this.setAttribute('validate-on-keystroke', '')
106-
}
107-
108104
const checker = debounce(check.bind(null, this), 300)
109105
const state = {check: checker, controller: null}
110106
states.set(this, state)

0 commit comments

Comments
 (0)