File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 201
201
},
202
202
{
203
203
"kind" : " field" ,
204
- "name" : " onlyValidateOnBlur " ,
204
+ "name" : " validateOnKeystroke " ,
205
205
"type" : {
206
206
"text" : " boolean"
207
- },
208
- "readonly" : true
207
+ }
209
208
},
210
209
{
211
210
"kind" : " field" ,
212
- "name" : " validateOnKeystroke " ,
211
+ "name" : " onlyValidateOnBlur " ,
213
212
"type" : {
214
213
"text" : " boolean"
215
- }
214
+ },
215
+ "readonly" : true
216
216
}
217
217
],
218
218
"attributes" : [
Original file line number Diff line number Diff line change @@ -188,11 +188,6 @@ export class AutoCheckElement extends HTMLElement {
188
188
return AllowedHttpMethods [ this . getAttribute ( 'http-method' ) as keyof typeof AllowedHttpMethods ] || 'POST'
189
189
}
190
190
191
- get onlyValidateOnBlur ( ) : boolean {
192
- const value = this . getAttribute ( 'only-validate-on-blur' )
193
- return value === 'true' || value === ''
194
- }
195
-
196
191
set validateOnKeystroke ( enabled : boolean ) {
197
192
if ( enabled ) {
198
193
this . setAttribute ( 'validate-on-keystroke' , '' )
@@ -205,6 +200,11 @@ export class AutoCheckElement extends HTMLElement {
205
200
const value = this . getAttribute ( 'validate-on-keystroke' )
206
201
return value === 'true' || value === ''
207
202
}
203
+
204
+ get onlyValidateOnBlur ( ) : boolean {
205
+ const value = this . getAttribute ( 'only-validate-on-blur' )
206
+ return value === 'true' || value === ''
207
+ }
208
208
}
209
209
210
210
function handleChange ( checker : ( ) => void , event : Event ) {
You can’t perform that action at this time.
0 commit comments