We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2708514 commit c5ba309Copy full SHA for c5ba309
src/packages/calendaritem/calendaritem.tsx
@@ -170,7 +170,7 @@ export const CalendarItem = React.forwardRef<
170
? ([...(defaultValue as string[])] as string[])
171
: (defaultValue as string[])
172
}
173
- return undefined
+ return type === 'single' ? '' : []
174
175
176
const [currentDate, setCurrentDate] = usePropsValue<CalendarValue>({
@@ -451,7 +451,7 @@ export const CalendarItem = React.forwardRef<
451
452
453
useEffect(() => {
454
- setCurrentDate(resetDefaultValue() || [])
+ setCurrentDate(resetDefaultValue())
455
}, [defaultValue])
456
457
0 commit comments