@descope/web-components-ui 1.0.376 → 1.0.377
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/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +3 -3
package/dist/index.esm.js
CHANGED
@@ -6253,9 +6253,9 @@ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$6 {
|
|
6253
6253
|
}
|
6254
6254
|
|
6255
6255
|
set value(val) {
|
6256
|
-
const parsed = parsePhone(val);
|
6257
|
-
const countryCode = `+${parsed.countryCallingCode}
|
6258
|
-
const phoneNumber = parsed
|
6256
|
+
const parsed = parsePhone(val || '');
|
6257
|
+
const countryCode = parsed?.countryCallingCode ? `+${parsed.countryCallingCode}` : '';
|
6258
|
+
const phoneNumber = parsed?.nationalNumber || '';
|
6259
6259
|
|
6260
6260
|
if (countryCode) {
|
6261
6261
|
const countryCodeItem = this.getCountryByDialCode(countryCode);
|