@sitecore-feaas/clientside 0.0.4 → 0.0.6

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.
@@ -209,6 +209,7 @@ class HTMLFeaasPickerLazy extends WebComponent {
209
209
  this.script.type = 'module'
210
210
  this.script.onload = this.onScriptLoaded
211
211
  this.script.src = this.src
212
+ this.script.crossOrigin = 'anonymous'
212
213
  this.appendChild(this.script)
213
214
  }
214
215
  }
@@ -232,7 +233,6 @@ class HTMLFeaasPickerLazy extends WebComponent {
232
233
  const value = this[key as keyof typeof this]
233
234
  if (value == null) {
234
235
  this.removeAttribute(key)
235
- this.load()
236
236
  } else if (this.getAttribute(key) != String(value)) {
237
237
  this.setAttribute(key, String(value))
238
238
  }
@@ -242,6 +242,9 @@ class HTMLFeaasPickerLazy extends WebComponent {
242
242
  } else if (this.getAttribute('hidden') == null) {
243
243
  this.setAttribute('hidden', 'hidden')
244
244
  }
245
+ if (this.mode && !this.hidden) {
246
+ this.load()
247
+ }
245
248
  if (this.element && this.element.set) {
246
249
  this.element.onClose = this.onClose
247
250
  this.element.set(options)