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