@descope/web-components-ui 2.2.11 → 2.2.12

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
@@ -2116,6 +2116,13 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1k,
2116
2116
  this.#initProcessor();
2117
2117
 
2118
2118
  observeChildren$1(this, this.#parseChildren.bind(this));
2119
+
2120
+ // Stop propagation on link clicks to prevent parent handlers from firing
2121
+ this.contentNode?.addEventListener('click', (e) => {
2122
+ if (e.target instanceof HTMLAnchorElement) {
2123
+ e.stopPropagation();
2124
+ }
2125
+ });
2119
2126
  }
2120
2127
 
2121
2128
  static get observedAttributes() {