@descope/web-components-ui 1.0.162 → 1.0.163

Sign up to get free protection for your applications and to get access to all the features.
@@ -1241,7 +1241,7 @@ const proxyInputMixin = (superclass) =>
1241
1241
  }
1242
1242
 
1243
1243
  get inputElement() {
1244
- if (this.#inputElement) return this.#inputElement
1244
+ if (this.#inputElement) return this.#inputElement;
1245
1245
 
1246
1246
  this.warnIfInputElementIsMissing();
1247
1247
 
@@ -1278,7 +1278,7 @@ const proxyInputMixin = (superclass) =>
1278
1278
  // on some cases the base element is not ready so the inputElement is empty
1279
1279
  // we are deferring this section to make sure the base element is ready
1280
1280
  setTimeout(() => {
1281
- this.inputElement.addEventListener('input', (e) => {
1281
+ this.inputElement?.addEventListener('input', (e) => {
1282
1282
  if (!this.inputElement.checkValidity()) {
1283
1283
  this.inputElement.setCustomValidity('');
1284
1284
  // after updating the input validity we want to trigger set validity on the wrapping element
@@ -1322,7 +1322,6 @@ const proxyInputMixin = (superclass) =>
1322
1322
  forwardAttrs(this, this.inputElement, { includeAttrs: ['inputmode'] });
1323
1323
  });
1324
1324
  }
1325
-
1326
1325
  };
1327
1326
 
1328
1327
  const composedProxyInputMixin = compose(