You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix radios component with defaultChecked inputs and conditional content (#377)
* Fallback to `name` when `id` (or `idPrefix`) is not provided
Form components with missing `id` (or `idPrefix`) now fall back to the `name` prop before generating IDs. This helps prevent hydration mismatch errors with server-side rendering (SSR) HTML
https://react.dev/link/hydration-mismatch
* Fix story typos
* Fix unique IDs required for character count
* Simplify checkbox ID and name stories
* Populate conditional content text input values
* Add radios change handler story
* Fix checkboxes `forceShowConditional` option by checking input
* Fix radios `forceShowConditional` option by checking input
* Remove non-working radio selection state from v5.x
* Align differences between checkboxes and radios
* Add default change handlers to checkboxes and radios
* Add radios stories to show controlled `checked` change via state
* Add checkboxes stories to show controlled `checked` change via state
* Update tests for conditional content
* Add changelog entry
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,15 @@
1
1
# NHS.UK React components
2
2
3
+
## Unreleased
4
+
5
+
This is a bug fix release.
6
+
7
+
Note: Form components with missing `id` (or `idPrefix`) now fall back to the `name` prop before generating IDs. This helps prevent [hydration mismatch](https://react.dev/link/hydration-mismatch) errors with server-side rendered (SSR) HTML.
8
+
9
+
### :wrench:**Fixes**
10
+
11
+
-[#377: Fix radios component with `defaultChecked` inputs and conditional content](https://github.com/NHSDigital/nhsuk-react-components/pull/377)
12
+
3
13
## 6.0.0 - 10 March 2026
4
14
5
15
This version provides support for NHS.UK frontend v10.3.0
0 commit comments