ecomlab-components-next 0.1.197 → 0.1.199
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -145,7 +145,7 @@ var ModalBitrixFormV2 = function ModalBitrixFormV2(_ref) {
|
|
|
145
145
|
} else if (inputType === 'tel') {
|
|
146
146
|
// const regex = /^\+7 \(\d{3}\) \d{3}-\d{2}-\d{2}$/;
|
|
147
147
|
// if (!regex.test(value)) {
|
|
148
|
-
if (
|
|
148
|
+
if (value.length < 1) {
|
|
149
149
|
error[id] = 'Неверный телефон';
|
|
150
150
|
isValid = false;
|
|
151
151
|
}
|
|
@@ -231,7 +231,7 @@ var ModalBitrixFormV2 = function ModalBitrixFormV2(_ref) {
|
|
|
231
231
|
} else if (inputType === 'tel') {
|
|
232
232
|
// const regex = /^\+7 \(\d{3}\) \d{3}-\d{2}-\d{2}$/;
|
|
233
233
|
// if (!regex.test(value)) {
|
|
234
|
-
if (value !== null && value !== void 0 && value.length) {
|
|
234
|
+
if (!(value !== null && value !== void 0 && value.length)) {
|
|
235
235
|
isValid = false;
|
|
236
236
|
}
|
|
237
237
|
} else if (inputType === 'dropdown') {
|