@descope/web-components-ui 1.0.376 → 1.0.378

Sign up to get free protection for your applications and to get access to all the features.
@@ -5624,14 +5624,12 @@ class EnrichedText extends createBaseClass({ componentName: componentName$F, bas
5624
5624
 
5625
5625
  let html = decodeHTML(this.innerHTML);
5626
5626
 
5627
- if (!html) {
5627
+ if (!html?.trim() && this.isConnected) {
5628
5628
  this.setAttribute('empty', 'true');
5629
-
5630
- return;
5629
+ } else {
5630
+ this.removeAttribute('empty');
5631
5631
  }
5632
5632
 
5633
- this.removeAttribute('empty');
5634
-
5635
5633
  try {
5636
5634
  const tokens = this.processor.parse(html, { references: undefined });
5637
5635
  html = this.processor.renderer.render(tokens, { html: true, breaks: true });