This commit is contained in:
2026-06-04 18:00:07 +03:00
parent e1704af8b4
commit 045e8d963d
+2 -4
View File
@@ -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')