@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.
@@ -19709,7 +19709,7 @@ const customMixin$9 = (superclass) =>
19709
19709
  // Vaadin toggles visibility on Enter keydown but lets the event bubble,
19710
19710
  // and the SDK submits the form on any Enter that reaches the flow root.
19711
19711
  stopRevealButtonEnterPropagation() {
19712
- this.revealButton.addEventListener('keydown', (e) => {
19712
+ this.revealButton?.addEventListener('keydown', (e) => {
19713
19713
  if (e.key === 'Enter') e.stopPropagation();
19714
19714
  });
19715
19715
  }
@@ -19771,7 +19771,7 @@ const customMixin$9 = (superclass) =>
19771
19771
  handlePasswordVisibility(externalInput) {
19772
19772
  // disable vaadin's `__boundRevealButtonMouseDown` mouse-down event lisetener
19773
19773
  const origBoundRevealButtonMouseDown = this.baseElement.__boundRevealButtonMouseDown;
19774
- this.revealButton.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
19774
+ this.revealButton?.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
19775
19775
 
19776
19776
  // disable vaadin's `_passwordVisibleChanged` observer
19777
19777
  this.baseElement._passwordVisibleChanged = () => {};