@formio/js 5.0.0-dev.5884.79b0f27 → 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.
- 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/Webform.js +2 -1
- package/lib/mjs/Webform.js +1 -1
- package/package.json +1 -1
package/lib/cjs/Webform.js
CHANGED
|
@@ -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
|
-
|
|
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) {
|
package/lib/mjs/Webform.js
CHANGED
|
@@ -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) {
|