Skip to content

Commit

Permalink
fix(date-range-picker): input field clear error
Browse files Browse the repository at this point in the history
  • Loading branch information
shrinidhi.upadhyaya committed Jul 3, 2024
1 parent ec7c417 commit 765ef5a
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 765ef5a

Please sign in to comment.