@trackunit/custom-field-components 0.0.683 → 0.0.684
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.
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -369,7 +369,7 @@ const getPhoneNumberValidationRules = (definition) => {
|
|
|
369
369
|
const defaultRules = {};
|
|
370
370
|
const pattern = {
|
|
371
371
|
validate: value => {
|
|
372
|
-
return value === "" || value === undefined || libphonenumberJs.isValidPhoneNumber(value);
|
|
372
|
+
return value === "" || value === undefined || value === null || libphonenumberJs.isValidPhoneNumber(value);
|
|
373
373
|
},
|
|
374
374
|
};
|
|
375
375
|
return definition.uiEditable
|
package/index.esm.js
CHANGED
|
@@ -346,7 +346,7 @@ const getPhoneNumberValidationRules = (definition) => {
|
|
|
346
346
|
const defaultRules = {};
|
|
347
347
|
const pattern = {
|
|
348
348
|
validate: value => {
|
|
349
|
-
return value === "" || value === undefined || isValidPhoneNumber(value);
|
|
349
|
+
return value === "" || value === undefined || value === null || isValidPhoneNumber(value);
|
|
350
350
|
},
|
|
351
351
|
};
|
|
352
352
|
return definition.uiEditable
|