@formio/js 5.1.0-dev.6215.61ce056 → 5.1.0-dev.6217.4c14467
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.
@@ -1206,7 +1206,6 @@ class WebformBuilder extends Component_1.default {
|
|
1206
1206
|
submissionData = submissionData.componentJson || submissionData;
|
1207
1207
|
if (submissionData.components && this.originalDefaultValue) {
|
1208
1208
|
submissionData.components = this.originalDefaultValue.components;
|
1209
|
-
this.originalDefaultValue = null;
|
1210
1209
|
}
|
1211
1210
|
const fieldsToRemoveDoubleQuotes = ['label', 'tooltip'];
|
1212
1211
|
this.replaceDoubleQuotes(submissionData, fieldsToRemoveDoubleQuotes);
|
package/lib/cjs/WizardBuilder.js
CHANGED
@@ -183,6 +183,10 @@ class WizardBuilder extends WebformBuilder_1.default {
|
|
183
183
|
this.navigationDragula = null;
|
184
184
|
super.detach();
|
185
185
|
}
|
186
|
+
destroy(all = false) {
|
187
|
+
this.off('saveComponent');
|
188
|
+
super.destroy(all);
|
189
|
+
}
|
186
190
|
rebuild() {
|
187
191
|
var _a;
|
188
192
|
const page = this.currentPage;
|
@@ -1188,7 +1188,6 @@ export default class WebformBuilder extends Component {
|
|
1188
1188
|
submissionData = submissionData.componentJson || submissionData;
|
1189
1189
|
if (submissionData.components && this.originalDefaultValue) {
|
1190
1190
|
submissionData.components = this.originalDefaultValue.components;
|
1191
|
-
this.originalDefaultValue = null;
|
1192
1191
|
}
|
1193
1192
|
const fieldsToRemoveDoubleQuotes = ['label', 'tooltip'];
|
1194
1193
|
this.replaceDoubleQuotes(submissionData, fieldsToRemoveDoubleQuotes);
|
package/lib/mjs/WizardBuilder.js
CHANGED
@@ -178,6 +178,10 @@ export default class WizardBuilder extends WebformBuilder {
|
|
178
178
|
this.navigationDragula = null;
|
179
179
|
super.detach();
|
180
180
|
}
|
181
|
+
destroy(all = false) {
|
182
|
+
this.off('saveComponent');
|
183
|
+
super.destroy(all);
|
184
|
+
}
|
181
185
|
rebuild() {
|
182
186
|
const page = this.currentPage;
|
183
187
|
this.webform.setForm({
|