@opencitylabs/formio-custom-components 0.7.0 → 0.7.1
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.iife.js +1 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7926,10 +7926,16 @@ function fr(e) {
|
|
|
7926
7926
|
static schema(...t) {
|
|
7927
7927
|
return e.schema({ resetValueOn: "" }, ...t);
|
|
7928
7928
|
}
|
|
7929
|
+
attach(e) {
|
|
7930
|
+
let t = super.attach(e);
|
|
7931
|
+
return this.root && (this.root.initialized ? this._resetValueOnReady = !0 : this.root.on("initialized", () => {
|
|
7932
|
+
this._resetValueOnReady = !0;
|
|
7933
|
+
})), t;
|
|
7934
|
+
}
|
|
7929
7935
|
checkRefreshOn(e, t = {}) {
|
|
7930
7936
|
super.checkRefreshOn(e, t);
|
|
7931
7937
|
let { resetValueOn: n } = this.component;
|
|
7932
|
-
!n || !e?.length || e.some((e) => n === "data" ? !0 : e.instance?.path === n || e.path === n) && this.setValue(this.emptyValue);
|
|
7938
|
+
!n || !e?.length || this._resetValueOnReady && e.some((e) => n === "data" ? !0 : e.instance?.path === n || e.path === n) && this.setValue(this.emptyValue);
|
|
7933
7939
|
}
|
|
7934
7940
|
};
|
|
7935
7941
|
}
|