@formio/js 5.0.0-dev.5682.2fe896c → 5.0.0-dev.5684.206e5cd

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.
@@ -351,6 +351,9 @@ class DataGridComponent extends NestedArrayComponent_1.default {
351
351
  dataValue.splice(newPosition, 0, draggedRowData);
352
352
  //remove element from old position (if was moved above, after insertion it's at +1 index)
353
353
  dataValue.splice(movedBelow ? oldPosition : oldPosition + 1, 1);
354
+ // When components are reordered we need to set the dataGrid and form pristine properties to false
355
+ this.root.pristine = false;
356
+ this.pristine = false;
354
357
  //need to re-build rows to re-calculate indexes and other indexed fields for component instance (like rows for ex.)
355
358
  this.setValue(dataValue, { isReordered: true });
356
359
  this.rebuild();
@@ -348,6 +348,9 @@ export default class DataGridComponent extends NestedArrayComponent {
348
348
  dataValue.splice(newPosition, 0, draggedRowData);
349
349
  //remove element from old position (if was moved above, after insertion it's at +1 index)
350
350
  dataValue.splice(movedBelow ? oldPosition : oldPosition + 1, 1);
351
+ // When components are reordered we need to set the dataGrid and form pristine properties to false
352
+ this.root.pristine = false;
353
+ this.pristine = false;
351
354
  //need to re-build rows to re-calculate indexes and other indexed fields for component instance (like rows for ex.)
352
355
  this.setValue(dataValue, { isReordered: true });
353
356
  this.rebuild();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5682.2fe896c",
3
+ "version": "5.0.0-dev.5684.206e5cd",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {