Skip to content

Commit 8248226

Browse files
authored
Merge pull request NHSDigital#11 from NHSDigital/feature/tjc-passIdToMaskedInput
Pass ID to masked input
2 parents c363c4e + 950233a commit 8248226

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/masked-input/MaskedInput.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const MaskedInput: React.FC<MaskedInputProps> = ({
5959
{ 'nhsuk-input--error': error },
6060
className,
6161
)}
62+
id={id}
6263
aria-describedby={children && id ? `${id}-label` : undefined}
6364
{...rest}
6465
/>

0 commit comments

Comments
 (0)