@descope/web-components-ui 3.23.1 → 3.23.2

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
@@ -9909,7 +9909,7 @@ const customMixin$d = (superclass) =>
9909
9909
  // Vaadin toggles visibility on Enter keydown but lets the event bubble,
9910
9910
  // and the SDK submits the form on any Enter that reaches the flow root.
9911
9911
  stopRevealButtonEnterPropagation() {
9912
- this.revealButton.addEventListener('keydown', (e) => {
9912
+ this.revealButton?.addEventListener('keydown', (e) => {
9913
9913
  if (e.key === 'Enter') e.stopPropagation();
9914
9914
  });
9915
9915
  }
@@ -9971,7 +9971,7 @@ const customMixin$d = (superclass) =>
9971
9971
  handlePasswordVisibility(externalInput) {
9972
9972
  // disable vaadin's `__boundRevealButtonMouseDown` mouse-down event lisetener
9973
9973
  const origBoundRevealButtonMouseDown = this.baseElement.__boundRevealButtonMouseDown;
9974
- this.revealButton.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
9974
+ this.revealButton?.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
9975
9975
 
9976
9976
  // disable vaadin's `_passwordVisibleChanged` observer
9977
9977
  this.baseElement._passwordVisibleChanged = () => {};