fix: update error

This commit is contained in:
hanif salafi 2025-12-02 07:38:19 +07:00
parent c3c3cc18b2
commit a241604bb4
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ export function FormDatePicker<
<Calendar <Calendar
initialFocus initialFocus
mode={mode} mode={mode}
defaultMonth={mode === 'range' && 'from' in selectedDate ? selectedDate.from : selectedDate} defaultMonth={mode === 'range' && selectedDate && 'from' in selectedDate ? selectedDate.from : selectedDate}
selected={selectedDate} selected={selectedDate}
onSelect={field.onChange} onSelect={field.onChange}
numberOfMonths={numberOfMonths} numberOfMonths={numberOfMonths}