@descope/web-components-ui 1.0.298 → 1.0.300

Sign up to get free protection for your applications and to get access to all the features.
@@ -4626,7 +4626,7 @@ const BaseEnrichedTextClass = createBaseTextClass(componentName$z);
4626
4626
  const EnrichedTextMixin = (superclass) =>
4627
4627
  class EnrichedTextMixinClass extends superclass {
4628
4628
  static get observedAttributes() {
4629
- return ['disabled-rules', 'line-break'];
4629
+ return ['disabled-rules', 'line-break', 'readonly'];
4630
4630
  }
4631
4631
 
4632
4632
  get lineBreak() {
@@ -4652,6 +4652,10 @@ const EnrichedTextMixin = (superclass) =>
4652
4652
  this.#parseChildren();
4653
4653
  }
4654
4654
  }
4655
+
4656
+ if (attrName === 'readonly') {
4657
+ this.onReadOnlyChange(newValue !== null);
4658
+ }
4655
4659
  }
4656
4660
 
4657
4661
  #initProcessor() {
@@ -4677,6 +4681,10 @@ const EnrichedTextMixin = (superclass) =>
4677
4681
  }
4678
4682
  }
4679
4683
  }
4684
+
4685
+ onReadOnlyChange(val) {
4686
+ this.setAttribute('inert', val);
4687
+ }
4680
4688
  };
4681
4689
 
4682
4690
  const EnrichedTextClass = compose(