Skip to content

Commit 7391504

Browse files
committed
[Fix] Prevent selecting dates past the maxDate (#50)
1 parent 061dec4 commit 7391504

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
@@ -313,7 +313,7 @@ const Days: React.FC<Props> = ({
313313
<button
314314
type="button"
315315
key={index}
316-
disabled={isDateDisabled(index, "previous")}
316+
disabled={isDateDisabled(index, "next")}
317317
className="flex items-center justify-center text-gray-400 h-12 w-12 lg:w-10 lg:h-10"
318318
onClick={() => {
319319
onClickNextDays(item);

0 commit comments

Comments
 (0)