@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.
@@ -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) && !(this.pristine && this.protected)) {
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) && !(this.pristine && this.protected)) {
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5844.c491f7d",
3
+ "version": "5.0.0-dev.5847.72f1bf3",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {