Skip to content

Commit dd3a9fc

Browse files
committed
Pass right day to isDateDisabled
1 parent 5603305 commit dd3a9fc

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
@@ -400,7 +400,7 @@ const Days: React.FC<Props> = ({
400400
<button
401401
type="button"
402402
key={index}
403-
disabled={isDateDisabled(index, "next")}
403+
disabled={isDateDisabled(item, "next")}
404404
className="flex items-center justify-center text-gray-400 h-12 w-12 lg:w-10 lg:h-10"
405405
onClick={() => handleClickDay(item, "next")}
406406
onMouseOver={() => {

0 commit comments

Comments
 (0)