@descope/web-components-ui 2.2.5 → 2.2.6

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.esm.js CHANGED
@@ -11160,7 +11160,11 @@ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$9 {
11160
11160
  const attr = mapAttrs$1[attrName] || attrName;
11161
11161
 
11162
11162
  if (commonAttrs$1.includes(attrName)) {
11163
- this.inputs.forEach((input) => input.setAttribute(attr, newValue));
11163
+ if (!newValue) {
11164
+ this.inputs.forEach((input) => input.removeAttribute(attr));
11165
+ } else {
11166
+ this.inputs.forEach((input) => input.setAttribute(attr, newValue));
11167
+ }
11164
11168
  } else if (countryAttrs.includes(attrName)) {
11165
11169
  this.comboBox.setAttribute(attr, newValue);
11166
11170
  } else if (phoneAttrs.includes(attrName)) {