@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.
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +2 -2
- package/dist/browser/react.cjs +1 -1
- package/dist/browser/react.js +1 -1
- package/dist/node/index.cjs +4 -1
- package/dist/node/index.js +4 -1
- package/dist/node/react.cjs +4 -1
- package/dist/node/react.js +4 -1
- package/index.cjs +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
- package/react.cjs +1 -1
- package/react.js +1 -1
- package/src/webcomponent.ts +4 -1
package/src/webcomponent.ts
CHANGED
|
@@ -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)
|