@formio/js 5.0.0-dev.5768.bc1b46b → 5.0.0-dev.5770.0748fdc
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 +2 -2
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +3 -3
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/components/datagrid/DataGrid.js +1 -1
- package/lib/cjs/components/file/File.d.ts +1 -1
- package/lib/cjs/components/file/File.js +3 -1
- package/lib/cjs/components/file/editForm/File.edit.display.js +1 -1
- package/lib/mjs/components/datagrid/DataGrid.js +1 -1
- package/lib/mjs/components/file/File.d.ts +1 -1
- package/lib/mjs/components/file/File.js +3 -1
- package/lib/mjs/components/file/editForm/File.edit.display.js +1 -1
- package/package.json +1 -1
|
@@ -436,7 +436,7 @@ class DataGridComponent extends NestedArrayComponent_1.default {
|
|
|
436
436
|
}
|
|
437
437
|
removeRow(index) {
|
|
438
438
|
const makeEmpty = index === 0 && this.rows.length === 1;
|
|
439
|
-
const flags = { isReordered: !makeEmpty, resetValue: makeEmpty
|
|
439
|
+
const flags = { isReordered: !makeEmpty, resetValue: makeEmpty };
|
|
440
440
|
this.splice(index, flags);
|
|
441
441
|
this.emit('dataGridDeleteRow', { index });
|
|
442
442
|
const [row] = this.rows.splice(index, 1);
|
|
@@ -151,7 +151,9 @@ class FileComponent extends Field_1.default {
|
|
|
151
151
|
return Boolean(this.filesToSync.filesToDelete.length || this.filesToSync.filesToUpload.length);
|
|
152
152
|
}
|
|
153
153
|
get autoSync() {
|
|
154
|
-
|
|
154
|
+
// Disable autoSync for now
|
|
155
|
+
return false;
|
|
156
|
+
// return _.get(this, 'component.autoSync', false);
|
|
155
157
|
}
|
|
156
158
|
get columnsSize() {
|
|
157
159
|
const actionsColumn = this.disabled ? 0 : this.autoSync ? 2 : 1;
|
|
@@ -432,7 +432,7 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
|
432
432
|
}
|
|
433
433
|
removeRow(index) {
|
|
434
434
|
const makeEmpty = index === 0 && this.rows.length === 1;
|
|
435
|
-
const flags = { isReordered: !makeEmpty, resetValue: makeEmpty
|
|
435
|
+
const flags = { isReordered: !makeEmpty, resetValue: makeEmpty };
|
|
436
436
|
this.splice(index, flags);
|
|
437
437
|
this.emit('dataGridDeleteRow', { index });
|
|
438
438
|
const [row] = this.rows.splice(index, 1);
|
|
@@ -140,7 +140,9 @@ export default class FileComponent extends Field {
|
|
|
140
140
|
return Boolean(this.filesToSync.filesToDelete.length || this.filesToSync.filesToUpload.length);
|
|
141
141
|
}
|
|
142
142
|
get autoSync() {
|
|
143
|
-
|
|
143
|
+
// Disable autoSync for now
|
|
144
|
+
return false;
|
|
145
|
+
// return _.get(this, 'component.autoSync', false);
|
|
144
146
|
}
|
|
145
147
|
get columnsSize() {
|
|
146
148
|
const actionsColumn = this.disabled ? 0 : this.autoSync ? 2 : 1;
|