@descope/web-components-ui 2.2.5 → 2.2.7

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.
@@ -175,7 +175,11 @@ class PhoneFieldInternal extends BaseInputClass {
175
175
  const attr = mapAttrs[attrName] || attrName;
176
176
 
177
177
  if (commonAttrs.includes(attrName)) {
178
- this.inputs.forEach((input) => input.setAttribute(attr, newValue));
178
+ if (!newValue) {
179
+ this.inputs.forEach((input) => input.removeAttribute(attr));
180
+ } else {
181
+ this.inputs.forEach((input) => input.setAttribute(attr, newValue));
182
+ }
179
183
  } else if (countryAttrs.includes(attrName)) {
180
184
  this.comboBox.setAttribute(attr, newValue);
181
185
  } else if (phoneAttrs.includes(attrName)) {