@descope/web-components-ui 3.22.2 → 3.22.3
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/cjs/index.cjs.js +21 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +21 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/9582.js +1 -1
- package/dist/umd/9582.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js.map +1 -1
- package/dist/umd/descope-alert-index-js.js +1 -1
- package/dist/umd/descope-alert-index-js.js.map +1 -1
- package/dist/umd/descope-enriched-text.js +1 -1
- package/dist/umd/descope-enriched-text.js.map +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js.map +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js.map +1 -1
- package/dist/umd/descope-password-index-js.js +1 -1
- package/dist/umd/descope-password-index-js.js.map +1 -1
- package/dist/umd/descope-tooltip.js +1 -1
- package/dist/umd/descope-tooltip.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +42 -42
- package/src/components/descope-password/PasswordClass.js +14 -3
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3957,6 +3957,13 @@ class EnrichedText extends createBaseClass$1({
|
|
|
3957
3957
|
e.stopPropagation();
|
|
3958
3958
|
}
|
|
3959
3959
|
});
|
|
3960
|
+
|
|
3961
|
+
// The SDK submits the form (and prevents link activation) on any Enter that reaches the flow root
|
|
3962
|
+
this.contentNode?.addEventListener('keydown', (e) => {
|
|
3963
|
+
if (e.key === 'Enter' && e.target instanceof HTMLAnchorElement) {
|
|
3964
|
+
e.stopPropagation();
|
|
3965
|
+
}
|
|
3966
|
+
});
|
|
3960
3967
|
}
|
|
3961
3968
|
|
|
3962
3969
|
static get observedAttributes() {
|
|
@@ -19274,6 +19281,19 @@ const customMixin$9 = (superclass) =>
|
|
|
19274
19281
|
this.baseElement._setFocused = this.setFocus.bind(this);
|
|
19275
19282
|
|
|
19276
19283
|
this.initExternalInput();
|
|
19284
|
+
this.stopRevealButtonEnterPropagation();
|
|
19285
|
+
}
|
|
19286
|
+
|
|
19287
|
+
// Vaadin toggles visibility on Enter keydown but lets the event bubble,
|
|
19288
|
+
// and the SDK submits the form on any Enter that reaches the flow root.
|
|
19289
|
+
stopRevealButtonEnterPropagation() {
|
|
19290
|
+
this.revealButton.addEventListener('keydown', (e) => {
|
|
19291
|
+
if (e.key === 'Enter') e.stopPropagation();
|
|
19292
|
+
});
|
|
19293
|
+
}
|
|
19294
|
+
|
|
19295
|
+
get revealButton() {
|
|
19296
|
+
return this.baseElement.querySelector('vaadin-password-field-button');
|
|
19277
19297
|
}
|
|
19278
19298
|
|
|
19279
19299
|
initExternalInput() {
|
|
@@ -19329,9 +19349,7 @@ const customMixin$9 = (superclass) =>
|
|
|
19329
19349
|
handlePasswordVisibility(externalInput) {
|
|
19330
19350
|
// disable vaadin's `__boundRevealButtonMouseDown` mouse-down event lisetener
|
|
19331
19351
|
const origBoundRevealButtonMouseDown = this.baseElement.__boundRevealButtonMouseDown;
|
|
19332
|
-
this.
|
|
19333
|
-
.querySelector('vaadin-password-field-button')
|
|
19334
|
-
.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
|
|
19352
|
+
this.revealButton.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
|
|
19335
19353
|
|
|
19336
19354
|
// disable vaadin's `_passwordVisibleChanged` observer
|
|
19337
19355
|
this.baseElement._passwordVisibleChanged = () => {};
|