@formio/js 5.1.0-rc.27 → 5.1.0-rc.29
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.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +5 -5
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +8 -8
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +2 -2
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/Embed.js +1 -1
- package/lib/cjs/Formio.js +1 -1
- package/lib/cjs/components/_classes/component/Component.d.ts +13 -2
- package/lib/cjs/components/_classes/component/Component.js +69 -19
- package/lib/cjs/components/address/editForm/Address.edit.display.d.ts +4 -0
- package/lib/cjs/components/address/editForm/Address.edit.display.js +1 -0
- package/lib/cjs/components/editgrid/EditGrid.js +3 -1
- package/lib/cjs/components/form/Form.js +1 -1
- package/lib/cjs/components/select/editForm/Select.edit.data.d.ts +1 -1
- package/lib/cjs/components/select/editForm/Select.edit.data.js +1 -0
- package/lib/cjs/components/unknown/Unknown.form.d.ts +1 -0
- package/lib/cjs/components/unknown/Unknown.form.js +1 -0
- package/lib/mjs/Embed.js +1 -1
- package/lib/mjs/Formio.js +1 -1
- package/lib/mjs/components/_classes/component/Component.d.ts +13 -2
- package/lib/mjs/components/_classes/component/Component.js +69 -19
- package/lib/mjs/components/address/editForm/Address.edit.display.d.ts +4 -0
- package/lib/mjs/components/address/editForm/Address.edit.display.js +1 -0
- package/lib/mjs/components/editgrid/EditGrid.js +3 -1
- package/lib/mjs/components/form/Form.js +1 -1
- package/lib/mjs/components/select/editForm/Select.edit.data.d.ts +1 -1
- package/lib/mjs/components/select/editForm/Select.edit.data.js +1 -0
- package/lib/mjs/components/unknown/Unknown.form.d.ts +1 -0
- package/lib/mjs/components/unknown/Unknown.form.js +1 -0
- package/package.json +1 -1
@@ -517,7 +517,7 @@ export default class FormComponent extends Component {
|
|
517
517
|
* @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
|
518
518
|
*/
|
519
519
|
get shouldSubmit() {
|
520
|
-
return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) &&
|
520
|
+
return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) && !this.shouldConditionallyClear();
|
521
521
|
}
|
522
522
|
/**
|
523
523
|
* Returns the data for the subform.
|
@@ -172,6 +172,7 @@ declare const _default: ({
|
|
172
172
|
key: string;
|
173
173
|
tooltip: string;
|
174
174
|
weight: number;
|
175
|
+
defaultValue: boolean;
|
175
176
|
conditional: {
|
176
177
|
json: {
|
177
178
|
and: ({
|
@@ -192,7 +193,6 @@ declare const _default: ({
|
|
192
193
|
data?: undefined;
|
193
194
|
as?: undefined;
|
194
195
|
editor?: undefined;
|
195
|
-
defaultValue?: undefined;
|
196
196
|
description?: undefined;
|
197
197
|
reorder?: undefined;
|
198
198
|
components?: undefined;
|
@@ -113,6 +113,7 @@ export default [
|
|
113
113
|
key: 'lazyLoad',
|
114
114
|
tooltip: 'When set, this will not fire off the request to the URL until this control is within focus. This can improve performance if you have many Select dropdowns on your form where the API\'s will only fire when the control is activated.',
|
115
115
|
weight: 11,
|
116
|
+
defaultValue: true,
|
116
117
|
conditional: {
|
117
118
|
json: {
|
118
119
|
and: [
|