@formio/js 5.0.0-dev.5844.c491f7d → 5.0.0-dev.5847.72f1bf3
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/formio.form.js +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +1 -1
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/components/_classes/component/Component.js +2 -2
- package/lib/mjs/components/_classes/component/Component.js +2 -2
- package/package.json +1 -1
|
@@ -2965,8 +2965,8 @@ class Component extends Element_1.default {
|
|
|
2965
2965
|
if (this.options.alwaysDirty) {
|
|
2966
2966
|
flags.dirty = true;
|
|
2967
2967
|
}
|
|
2968
|
-
if (flags.fromSubmission && this.hasValue(data)
|
|
2969
|
-
flags.dirty = true;
|
|
2968
|
+
if (flags.fromSubmission && this.hasValue(data)) {
|
|
2969
|
+
flags.dirty = this.pristine && this.component.protected ? false : true;
|
|
2970
2970
|
}
|
|
2971
2971
|
this.setDirty(flags.dirty);
|
|
2972
2972
|
return this.setComponentValidity(errors, flags.dirty, flags.silentCheck, flags.fromSubmission);
|
|
@@ -2929,8 +2929,8 @@ export default class Component extends Element {
|
|
|
2929
2929
|
if (this.options.alwaysDirty) {
|
|
2930
2930
|
flags.dirty = true;
|
|
2931
2931
|
}
|
|
2932
|
-
if (flags.fromSubmission && this.hasValue(data)
|
|
2933
|
-
flags.dirty = true;
|
|
2932
|
+
if (flags.fromSubmission && this.hasValue(data)) {
|
|
2933
|
+
flags.dirty = this.pristine && this.component.protected ? false : true;
|
|
2934
2934
|
}
|
|
2935
2935
|
this.setDirty(flags.dirty);
|
|
2936
2936
|
return this.setComponentValidity(errors, flags.dirty, flags.silentCheck, flags.fromSubmission);
|