@descope/web-components-ui 1.0.153 → 1.0.155

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -601,6 +601,10 @@ const createBaseClass = ({ componentName, baseSelector = '' }) => {
601
601
  return this.shadowRoot || this;
602
602
  }
603
603
 
604
+ get name () {
605
+ return this.getAttribute('name');
606
+ }
607
+
604
608
  connectedCallback() {
605
609
  super.connectedCallback?.();
606
610
 
@@ -898,10 +902,6 @@ const proxyInputMixin = (superclass) =>
898
902
  }, 0);
899
903
  }
900
904
 
901
- get name() {
902
- return this.getAttribute('name');
903
- }
904
-
905
905
  get inputElement() {
906
906
  this.warnIfInputElementIsMissing();
907
907
 
@@ -4513,6 +4513,9 @@ class PhoneFieldInternal extends BaseInputClass$2 {
4513
4513
  }
4514
4514
 
4515
4515
  get value() {
4516
+ if (!this.countryCodeValue || !this.phoneNumberValue) {
4517
+ return '';
4518
+ }
4516
4519
  return this.inputs.map(({ value }) => value).join('-');
4517
4520
  }
4518
4521