This commit is contained in:
2026-06-04 20:11:10 +03:00
parent 6fc6a16829
commit 34ab3189e0
+1 -3
View File
@@ -198,9 +198,8 @@ export class FormValidator extends Validator {
if (input.type == 'checkbox' || input.type == 'radio') { if (input.type == 'checkbox' || input.type == 'radio') {
input.parentNode.classList.add('sp-has-error'); input.parentNode.classList.add('sp-has-error');
} }
else {
let fieldWrapper = input.dxParents('.form-field'); const fieldWrapper = input.dxParents('.form-field');
if (!fieldWrapper) { if (!fieldWrapper) {
return false; return false;
@@ -216,7 +215,6 @@ export class FormValidator extends Validator {
else { else {
fieldWrapper.append( El('div', { className: 'sp-label-error' }, emsg ) ); fieldWrapper.append( El('div', { className: 'sp-label-error' }, emsg ) );
} }
}
return false; return false;
} }