@awell-health/ui-library 0.1.119 → 0.1.120
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 +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37360,12 +37360,15 @@ Check the top-level render call using <` + t + ">.");
|
|
|
37360
37360
|
countries: countries,
|
|
37361
37361
|
forceDialCode: forceDialCode,
|
|
37362
37362
|
onPhoneUpdate: function (phone) {
|
|
37363
|
-
var
|
|
37364
|
-
if (touched
|
|
37363
|
+
var hasSignificantValue = phone.length > 4;
|
|
37364
|
+
if (touched || hasSignificantValue) {
|
|
37365
37365
|
onChange({ target: { value: phone } });
|
|
37366
|
+
if (!touched) {
|
|
37367
|
+
setTouched(true);
|
|
37368
|
+
}
|
|
37366
37369
|
} else
|
|
37367
37370
|
{
|
|
37368
|
-
onChange({ target: { value:
|
|
37371
|
+
onChange({ target: { value: '' } });
|
|
37369
37372
|
}
|
|
37370
37373
|
} }),
|
|
37371
37374
|
phone = _e.phone,handlePhoneValueChange = _e.handlePhoneValueChange,inputRef = _e.inputRef,country = _e.country,setCountry = _e.setCountry;
|