File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ <h2 tabindex="-1" id="success2" class="success" hidden>Your submission was succe
41
41
< h2 > only-validate-on-blur</ h2 >
42
42
< h2 tabindex ="-1 " id ="success3 " class ="success " hidden > Your submission was successful</ h2 >
43
43
< form >
44
+ < p > All fields marked with * are required</ p >
45
+
44
46
< label for ="simple-field2 "> Desired username*:</ label >
45
47
< auto-check csrf ="foo " src ="/demo " required only-validate-on-blur >
46
48
< input id ="simple-field2 " autofocus name ="foo " required aria-describedby ="state3 " />
Original file line number Diff line number Diff line change @@ -101,10 +101,6 @@ export class AutoCheckElement extends HTMLElement {
101
101
const input = this . input
102
102
if ( ! input ) return
103
103
104
- if ( ! this . onlyValidateOnBlur ) {
105
- this . setAttribute ( 'validate-on-keystroke' , '' )
106
- }
107
-
108
104
const checker = debounce ( check . bind ( null , this ) , 300 )
109
105
const state = { check : checker , controller : null }
110
106
states . set ( this , state )
You can’t perform that action at this time.
0 commit comments