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 9684363 commit 9d40423Copy full SHA for 9d40423
lib/calendar/Calendar.tsx
@@ -42,7 +42,7 @@ function Calendar(originalProps: CalendarProps) {
42
defaultValue: startOfDay(new Date()),
43
type: 'date' as PickerType,
44
disabledDate: () => false,
45
- holidayClickable: () => false,
+ holidayClickable: false,
46
holidayDate: () => false,
47
getClasses: () => [],
48
titleFormat: 'YYYY-MM-DD',
@@ -97,10 +97,7 @@ function Calendar(originalProps: CalendarProps) {
97
if (isDisabled(date)) {
98
return false;
99
}
100
- if (!props.holidayClickable && isHoliday(date)) {
101
- return false;
102
- }
103
- return true;
+ return !(!props.holidayClickable && isHoliday(date));
104
};
105
106
const emitDate = (date: Date, type: string) => {
0 commit comments