From 141eecf784d81ecab5e96ac046aeea299538b306 Mon Sep 17 00:00:00 2001 From: Peter Hellstrand Date: Thu, 16 May 2024 15:31:48 +0200 Subject: [PATCH] fix(ffe-datepicker-react): add the id to input --- packages/ffe-datepicker-react/src/datepicker/Datepicker.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ffe-datepicker-react/src/datepicker/Datepicker.tsx b/packages/ffe-datepicker-react/src/datepicker/Datepicker.tsx index 6703012171..cec1076434 100644 --- a/packages/ffe-datepicker-react/src/datepicker/Datepicker.tsx +++ b/packages/ffe-datepicker-react/src/datepicker/Datepicker.tsx @@ -12,6 +12,7 @@ export interface DatepickerProps { 'aria-invalid'?: React.ComponentProps<'input'>['aria-invalid']; ariaInvalid?: string | boolean; calendarAbove?: boolean; + id?: string; inputProps?: Pick< React.ComponentPropsWithRef<'input'>, 'ref' | 'className' | 'id' | 'aria-describedby' @@ -283,6 +284,7 @@ export class Datepicker extends Component {
onChange(evt.target.value)}