@descope/web-components-ui 1.0.377 → 1.0.378
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 +3 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-enriched-text-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-enriched-text/EnrichedTextClass.js +3 -5
package/dist/index.esm.js
CHANGED
@@ -4320,14 +4320,12 @@ class EnrichedText extends createBaseClass({ componentName: componentName$G, bas
|
|
4320
4320
|
|
4321
4321
|
let html = decodeHTML(this.innerHTML);
|
4322
4322
|
|
4323
|
-
if (!html) {
|
4323
|
+
if (!html?.trim() && this.isConnected) {
|
4324
4324
|
this.setAttribute('empty', 'true');
|
4325
|
-
|
4326
|
-
|
4325
|
+
} else {
|
4326
|
+
this.removeAttribute('empty');
|
4327
4327
|
}
|
4328
4328
|
|
4329
|
-
this.removeAttribute('empty');
|
4330
|
-
|
4331
4329
|
try {
|
4332
4330
|
const tokens = this.processor.parse(html, { references: undefined });
|
4333
4331
|
html = this.processor.renderer.render(tokens, { html: true, breaks: true });
|