@sbb-esta/lyne-elements-dev 4.13.0-dev.1780293195 → 4.13.0-dev.1780308350

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.
@@ -153,6 +153,11 @@ var _ = (() => {
153
153
  validate() {
154
154
  super.validate(), this.required && !this.value ? this.setValidityFlag("valueMissing", h[this.language.current]) : this.removeValidityFlag("valueMissing");
155
155
  }
156
+ isSelected() {
157
+ if (c) return !1;
158
+ let e = window.getSelection();
159
+ return !!e && e.rangeCount > 0 && this.contains(e.anchorNode);
160
+ }
156
161
  preparePastedText(e) {
157
162
  return e;
158
163
  }