Skip to content

Commit

Permalink
Fix date picker to open with the selected month instead of defaulting…
Browse files Browse the repository at this point in the history
… to the current month (#14)
  • Loading branch information
cempehlivan authored Sep 28, 2024
1 parent 902845c commit 7dbdd60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/custom/v2/add-entry/date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function DatePicker({
<Calendar
mode="single"
selected={value}
defaultMonth={value}
onSelect={onValueChange}
initialFocus
weekStartsOn={1}
Expand Down

0 comments on commit 7dbdd60

Please sign in to comment.