Skip to content

Commit 1e77132

Browse files
committed
[Fix] useCallback missing disabledDates dependency
1 parent faf885f commit 1e77132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Calendar/Days.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ const Days: React.FC<Props> = ({
231231
});
232232
return matchingCount > 0;
233233
},
234-
[calendarData.date, isDateTooEarly, isDateTooLate]
234+
[calendarData.date, isDateTooEarly, isDateTooLate, disabledDates]
235235
);
236236

237237
const buttonClass = useCallback(

0 commit comments

Comments
 (0)