@7shifts/sous-chef 3.61.0 → 3.61.1
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/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12515,7 +12515,10 @@ var usePhoneFieldControllers = function usePhoneFieldControllers(_ref) {
|
|
|
12515
12515
|
}
|
|
12516
12516
|
};
|
|
12517
12517
|
var _useState = React.useState(function () {
|
|
12518
|
-
|
|
12518
|
+
var initialValues = parseMeta(phoneFieldValue || '');
|
|
12519
|
+
// We don't want to show the initial parsing error until the value is touched
|
|
12520
|
+
initialValues.parsingError = '';
|
|
12521
|
+
return initialValues;
|
|
12519
12522
|
}),
|
|
12520
12523
|
meta = _useState[0],
|
|
12521
12524
|
setMeta = _useState[1];
|