diff --git a/client/src/views/fields/phone.js b/client/src/views/fields/phone.js index 1a62fa1e28..dd8459aa9d 100644 --- a/client/src/views/fields/phone.js +++ b/client/src/views/fields/phone.js @@ -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;