Skip to content

Commit

Permalink
fix(date-range-picker): input field clear error (#3409)
Browse files Browse the repository at this point in the history
Co-authored-by: shrinidhi.upadhyaya <shrinidhi.upadhyaya@stud.uni-bamberg.de>
  • Loading branch information
ShrinidhiUpadhyaya and shrinidhi.upadhyaya authored Jul 6, 2024
1 parent 106752a commit 9806d1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/docs/content/components/date-range-picker/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function App() {
</ButtonGroup>
}
calendarProps={{
focusedValue: value.start,
focusedValue: value?.start,
onFocusChange: (val) => setValue({...value, start: val}),
nextButtonProps: {
variant: "bordered",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ const PresetsTemplate = (args: DateRangePickerProps) => {
</ButtonGroup>
}
calendarProps={{
focusedValue: value.start,
focusedValue: value?.start,
onFocusChange: (val) => setValue({...value, start: val}),
nextButtonProps: {
variant: "bordered",
Expand Down

0 comments on commit 9806d1c

Please sign in to comment.