@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.modern.js
CHANGED
|
@@ -12578,7 +12578,12 @@ const usePhoneFieldControllers = ({
|
|
|
12578
12578
|
};
|
|
12579
12579
|
}
|
|
12580
12580
|
};
|
|
12581
|
-
const [meta, setMeta] = useState(() =>
|
|
12581
|
+
const [meta, setMeta] = useState(() => {
|
|
12582
|
+
const initialValues = parseMeta(phoneFieldValue || '');
|
|
12583
|
+
// We don't want to show the initial parsing error until the value is touched
|
|
12584
|
+
initialValues.parsingError = '';
|
|
12585
|
+
return initialValues;
|
|
12586
|
+
});
|
|
12582
12587
|
let controllers = {
|
|
12583
12588
|
id,
|
|
12584
12589
|
error: error || meta.parsingError,
|