Skip to content

Commit

Permalink
feature: preserve default values in group fields
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheAdams committed Aug 22, 2023
1 parent 2b086f0 commit 79f6960
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DonationForms/resources/app/fields/SectionNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function SectionNode({node}: {node: Node}) {

if (isGroup(node)) {
node.walkNodes((node) => {
unregister(node.name);
unregister(node.name, {
keepDefaultValue: true,
});
}, isField);
}
}, [showNode, unregister]);
Expand Down

0 comments on commit 79f6960

Please sign in to comment.