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