@opencitylabs/formio-custom-components 0.8.6 → 0.8.7

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.js CHANGED
@@ -8003,13 +8003,7 @@ var mr = e.components.select, hr = {
8003
8003
  }
8004
8004
  }
8005
8005
  }
8006
- findItem(e) {
8007
- if (e == null) return null;
8008
- let t = this.component.valueProperty;
8009
- return t ? (this.defaultDownloadedResources || []).find((n) => n[t] === e) || null : typeof e == "object" ? (this.defaultDownloadedResources || []).find((t) => JSON.stringify(t) === JSON.stringify(e)) || e : null;
8010
- }
8011
8006
  attach(e) {
8012
- this.options.readOnly && (this.activated = !0);
8013
8007
  let t = super.attach(e);
8014
8008
  return (Array.isArray(this.refs.autocompleteInput) ? this.refs.autocompleteInput : [this.refs.autocompleteInput]).forEach((e) => {
8015
8009
  e?.parentNode && e.parentNode.removeChild(e);