updates
This commit is contained in:
@@ -125,10 +125,8 @@ export class FormValidator extends Validator {
|
||||
|
||||
let el = this.target.elements[ name ];
|
||||
|
||||
if (!('length' in el ) || el.nodeName.toLowerCase() == 'select') {
|
||||
el = [ el ];
|
||||
}
|
||||
|
||||
el = Array.from(el instanceof Element ? [el] : el);
|
||||
|
||||
for (let input of el) {
|
||||
|
||||
let val = (input.type && input.type == 'checkbox')
|
||||
|
||||
Reference in New Issue
Block a user