updates
This commit is contained in:
@@ -198,9 +198,8 @@ export class FormValidator extends Validator {
|
||||
if (input.type == 'checkbox' || input.type == 'radio') {
|
||||
input.parentNode.classList.add('sp-has-error');
|
||||
}
|
||||
else {
|
||||
|
||||
let fieldWrapper = input.dxParents('.form-field');
|
||||
const fieldWrapper = input.dxParents('.form-field');
|
||||
|
||||
if (!fieldWrapper) {
|
||||
return false;
|
||||
@@ -216,7 +215,6 @@ export class FormValidator extends Validator {
|
||||
else {
|
||||
fieldWrapper.append( El('div', { className: 'sp-label-error' }, emsg ) );
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user