Skip to content

Commit

Permalink
FIO-9176: updated instance.component.path
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria.Golomb committed Oct 29, 2024
1 parent 5b0a8fb commit a79f03e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/_classes/nested/NestedComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,11 @@ export default class NestedComponent extends Field {
if (!instance) {
return;
}

if(!instance.component.path) {
instance.component.path = component.path;
}

instance.checkComponentValidity(data, dirty, row, flags, scope.errors);
if (instance.processOwnValidation) {
scope.noRecurse = true;
Expand Down
2 changes: 2 additions & 0 deletions src/components/editgrid/EditGrid.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,8 @@ describe('EditGrid Open when Empty', () => {
assert.equal(editRow.errors.length, 1, 'Should show error on row');
const textField = editRow.components[0];
assert(textField.element.className.includes('formio-error-wrapper'), 'Should add error class to component');
const error = editRow.errors[0];
assert.equal(error.formattedKeyOrPath, 'editGrid[0].textField');
done();
}, 450);
}, 100);
Expand Down

0 comments on commit a79f03e

Please sign in to comment.