From 363e0b5a8db456da9ea2d350462d0008bad63603 Mon Sep 17 00:00:00 2001 From: Anders Date: Fri, 13 Dec 2024 15:42:12 +0100 Subject: [PATCH] fix(DatePicker): add `null` as possible date type as return value (#4407) --- .../src/components/date-picker/DatePickerProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dnb-eufemia/src/components/date-picker/DatePickerProvider.tsx b/packages/dnb-eufemia/src/components/date-picker/DatePickerProvider.tsx index 2075d9cf611..9da22952f2b 100644 --- a/packages/dnb-eufemia/src/components/date-picker/DatePickerProvider.tsx +++ b/packages/dnb-eufemia/src/components/date-picker/DatePickerProvider.tsx @@ -49,7 +49,7 @@ export type ReturnObject = { event?: E attributes?: Record days_between?: number - date?: string + date?: string | null start_date?: string end_date?: string is_valid?: boolean