@formio/js 5.0.0-dev.5848.fdc46f8 → 5.0.0-dev.5850.b6b5101
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.
|
@@ -70,6 +70,9 @@ class Components {
|
|
|
70
70
|
const rowIndex = component.row;
|
|
71
71
|
const rowIndexPath = rowIndex && !['container'].includes(thisPath.component.type) ? `[${Number.parseInt(rowIndex)}]` : '';
|
|
72
72
|
path = `${thisPath.path}${rowIndexPath}.`;
|
|
73
|
+
if (rowIndexPath && (0, utils_2.getModelType)(thisPath) === 'nestedDataArray') {
|
|
74
|
+
path = `${path}data.`;
|
|
75
|
+
}
|
|
73
76
|
path += componentKey;
|
|
74
77
|
return lodash_1.default.trim(path, '.');
|
|
75
78
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Component from './_classes/component/Component';
|
|
2
2
|
import EditFormUtils from './_classes/component/editForm/utils';
|
|
3
3
|
import BaseEditForm from './_classes/component/Component.form';
|
|
4
|
-
import { getComponentKey } from '../utils/utils';
|
|
4
|
+
import { getComponentKey, getModelType } from '../utils/utils';
|
|
5
5
|
import _ from 'lodash';
|
|
6
6
|
export default class Components {
|
|
7
7
|
static _editFormUtils = EditFormUtils;
|
|
@@ -66,6 +66,9 @@ export default class Components {
|
|
|
66
66
|
const rowIndex = component.row;
|
|
67
67
|
const rowIndexPath = rowIndex && !['container'].includes(thisPath.component.type) ? `[${Number.parseInt(rowIndex)}]` : '';
|
|
68
68
|
path = `${thisPath.path}${rowIndexPath}.`;
|
|
69
|
+
if (rowIndexPath && getModelType(thisPath) === 'nestedDataArray') {
|
|
70
|
+
path = `${path}data.`;
|
|
71
|
+
}
|
|
69
72
|
path += componentKey;
|
|
70
73
|
return _.trim(path, '.');
|
|
71
74
|
}
|