fix validation

This commit is contained in:
Yuri Kuznetsov
2023-02-24 12:14:41 +02:00
parent d11f0f4f1b
commit e416dac56f
+3 -3
View File
@@ -51,7 +51,7 @@ function (Dep, /** module:ui/select*/Select) {
let msg = this.translate('fieldIsRequired', 'messages')
.replace('{field}', this.getLabelText());
this.showValidationMessage(msg, 'div.phone-number-block:nth-child(1) input');
this.showValidationMessage(msg, 'div.phone-number-block:nth-child(1) input.phone-number');
return true;
}
@@ -82,7 +82,7 @@ function (Dep, /** module:ui/select*/Select) {
.replace('{field}', this.getLabelText());
this.showValidationMessage(msg, 'div.phone-number-block:nth-child(' + (i + 1)
.toString() + ') input');
.toString() + ') input.phone-number');
}
let numberClean = String(number).replace(/[\s\+]/g, '');
@@ -92,7 +92,7 @@ function (Dep, /** module:ui/select*/Select) {
.replace('{field}', this.getLabelText());
this.showValidationMessage(msg, 'div.phone-number-block:nth-child(' + (i + 1)
.toString() + ') input');
.toString() + ') input.phone-number');
notValid = true;