@formio/js 5.0.0-dev.5885.a79f03e → 5.0.0-dev.5886.c52e2a5

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.
@@ -738,7 +738,8 @@ class Webform extends NestedDataComponent_1.default {
738
738
  this.emit(restoreDraft ? "restoreDraftError" : "saveDraftError", errDetails || errorMessage);
739
739
  }
740
740
  saveDraft() {
741
- if (!this.draftEnabled) {
741
+ var _a;
742
+ if (!this.draftEnabled || ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.component.reference) === false) {
742
743
  return;
743
744
  }
744
745
  if (!this.formio) {
@@ -693,9 +693,6 @@ class NestedComponent extends Field_1.default {
693
693
  if (!instance) {
694
694
  return;
695
695
  }
696
- if (!instance.component.path) {
697
- instance.component.path = component.path;
698
- }
699
696
  instance.checkComponentValidity(data, dirty, row, flags, scope.errors);
700
697
  if (instance.processOwnValidation) {
701
698
  scope.noRecurse = true;
@@ -742,7 +742,7 @@ export default class Webform extends NestedDataComponent {
742
742
  this.emit(restoreDraft ? "restoreDraftError" : "saveDraftError", errDetails || errorMessage);
743
743
  }
744
744
  saveDraft() {
745
- if (!this.draftEnabled) {
745
+ if (!this.draftEnabled || this.parent?.component.reference === false) {
746
746
  return;
747
747
  }
748
748
  if (!this.formio) {
@@ -688,9 +688,6 @@ export default class NestedComponent extends Field {
688
688
  if (!instance) {
689
689
  return;
690
690
  }
691
- if (!instance.component.path) {
692
- instance.component.path = component.path;
693
- }
694
691
  instance.checkComponentValidity(data, dirty, row, flags, scope.errors);
695
692
  if (instance.processOwnValidation) {
696
693
  scope.noRecurse = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5885.a79f03e",
3
+ "version": "5.0.0-dev.5886.c52e2a5",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {