@arquimedes.co/eureka-forms 2.0.97 → 2.0.99-test
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.
|
@@ -43,8 +43,7 @@ export var calcValue = function (idStep, steps, values, customSteps, deleteIds,
|
|
|
43
43
|
((_c = step.validation) === null || _c === void 0 ? void 0 : _c.type) === 'PHONE') {
|
|
44
44
|
if (isValidPhoneNumber(value))
|
|
45
45
|
return value;
|
|
46
|
-
|
|
47
|
-
return;
|
|
46
|
+
return '';
|
|
48
47
|
}
|
|
49
48
|
else {
|
|
50
49
|
return value;
|
|
@@ -201,7 +201,7 @@ function CustomPhoneInput(_a) {
|
|
|
201
201
|
borderBottom: 'none',
|
|
202
202
|
} }, { children: _jsx(Select, __assign({ classes: countrySelectClasses, value: country.iso2, onChange: function (e) {
|
|
203
203
|
return setCountry(e.target.value);
|
|
204
|
-
}, renderValue: function (value) { return (_jsx(FlagImage, { iso2: value, style: { display: 'flex' }, width: 20 })); } }, { children: countries.map(function (_a) {
|
|
204
|
+
}, inputProps: { disabled: cantEdit }, renderValue: function (value) { return (_jsx(FlagImage, { iso2: value, style: { display: 'flex' }, width: 20 })); } }, { children: countries.map(function (_a) {
|
|
205
205
|
var country = _a.country, name = _a.name;
|
|
206
206
|
return (_jsxs(MenuItem, __assign({ value: country.iso2 }, { children: [_jsx(FlagImage, { iso2: country.iso2, size: 20 }), _jsx("span", __assign({ style: {
|
|
207
207
|
marginLeft: '8px',
|
package/package.json
CHANGED