Skip to content

Commit

Permalink
fix(nhsuk-frontend-react): update initialisation of radio conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
rowellx68 committed Sep 27, 2024
1 parent 7daa316 commit ad0e900
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-tables-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nhsuk-frontend-react": patch
---

fix(nhsuk-frontend-react): update initialisation of radio conditionals
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Radio = factory<RadioFactory>(({ children, inline, ...props }, ref) => {
}

initRadio({ scope: parent as any });
}, [internalRef]);
}, [internalRef, withConditionals]);

const value = useMemo(
() => ({ withConditionals, setWithConditionals }),
Expand Down

0 comments on commit ad0e900

Please sign in to comment.