Skip to content

Commit

Permalink
fix(core/forms): update field instance state in init node.
Browse files Browse the repository at this point in the history
  • Loading branch information
peppedeka committed Jul 7, 2021
1 parent 6a7fc1a commit 44ebb8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/forms/form-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ export class AjfFormRendererService {
} else {
fInstance.value = context[nodeInstanceCompleteName(instance)];
}
updateFieldInstanceState(fInstance, context);
}
updateFieldInstanceState(fInstance, context);
}
this._addNodeInstance(instance);
}
Expand Down Expand Up @@ -622,7 +622,8 @@ export class AjfFormRendererService {
const prefix = instance.prefix.slice(0);
const group = instance.node;
prefix.push(i);
orderedNodes(group.nodes, instance.node.id).forEach((n) => {
const orderedListNodes = orderedNodes(group.nodes, instance.node.id);
orderedListNodes.forEach((n) => {
const newInstance = this._initNodeInstance(allNodes, n, prefix, context);
if (newInstance != null) {
newNodes.push(newInstance);
Expand Down

0 comments on commit 44ebb8a

Please sign in to comment.