From 765ef5a7bd953eaffe3d43b9cbe0c955618d6fdf Mon Sep 17 00:00:00 2001 From: "shrinidhi.upadhyaya" Date: Thu, 4 Jul 2024 01:12:50 +0200 Subject: [PATCH] fix(date-range-picker): input field clear error --- apps/docs/content/components/date-range-picker/presets.ts | 2 +- .../date-picker/stories/date-range-picker.stories.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/components/date-range-picker/presets.ts b/apps/docs/content/components/date-range-picker/presets.ts index eb097ecf00..6bf954195b 100644 --- a/apps/docs/content/components/date-range-picker/presets.ts +++ b/apps/docs/content/components/date-range-picker/presets.ts @@ -88,7 +88,7 @@ export default function App() { } calendarProps={{ - focusedValue: value.start, + focusedValue: value?.start, onFocusChange: (val) => setValue({...value, start: val}), nextButtonProps: { variant: "bordered", diff --git a/packages/components/date-picker/stories/date-range-picker.stories.tsx b/packages/components/date-picker/stories/date-range-picker.stories.tsx index ac5b3103ea..78b1fbc57e 100644 --- a/packages/components/date-picker/stories/date-range-picker.stories.tsx +++ b/packages/components/date-picker/stories/date-range-picker.stories.tsx @@ -349,7 +349,7 @@ const PresetsTemplate = (args: DateRangePickerProps) => { } calendarProps={{ - focusedValue: value.start, + focusedValue: value?.start, onFocusChange: (val) => setValue({...value, start: val}), nextButtonProps: { variant: "bordered",