@formio/js 5.0.0-dev.5839.ce94528 → 5.0.0-dev.5840.acb2be3

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,7 +2965,7 @@ 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)) {
2968
+ if (flags.fromSubmission && this.hasValue(data) && !(this.pristine && this.protected)) {
2969
2969
  flags.dirty = true;
2970
2970
  }
2971
2971
  this.setDirty(flags.dirty);
@@ -79,14 +79,6 @@ class RadioComponent extends ListComponent_1.default {
79
79
  }
80
80
  return defaultValue;
81
81
  }
82
- resetValue() {
83
- this.unset();
84
- this.setValue(this.emptyValue, {
85
- noUpdateEvent: true,
86
- noValidate: true,
87
- resetValue: true
88
- });
89
- }
90
82
  get inputInfo() {
91
83
  var _a;
92
84
  const info = super.elementInfo();
@@ -2929,7 +2929,7 @@ 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)) {
2932
+ if (flags.fromSubmission && this.hasValue(data) && !(this.pristine && this.protected)) {
2933
2933
  flags.dirty = true;
2934
2934
  }
2935
2935
  this.setDirty(flags.dirty);
@@ -80,14 +80,6 @@ export default class RadioComponent extends ListComponent {
80
80
  }
81
81
  return defaultValue;
82
82
  }
83
- resetValue() {
84
- this.unset();
85
- this.setValue(this.emptyValue, {
86
- noUpdateEvent: true,
87
- noValidate: true,
88
- resetValue: true
89
- });
90
- }
91
83
  get inputInfo() {
92
84
  const info = super.elementInfo();
93
85
  info.type = 'input';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5839.ce94528",
3
+ "version": "5.0.0-dev.5840.acb2be3",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {