gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.

Home Page:https://daypicker.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: onPrevClick and onNextClick does not trigger

pdhruv93 opened this issue · comments

Bug description

On paginated view the next and prev click handlers does not works

To reproduce

Fork this CodeSandbox: https://codesandbox.io/p/sandbox/react-daypicker-j2hjn4?file=%2Fsrc%2FApp.tsx%3A11%2C5 with the code to reproduce the issue.

<DayPicker
      numberOfMonths={2}
      pagedNavigation
      onNextClick={() => console.log(":::Next")}
      onPrevClick={() => console.log(":::Prev")}
    />

Additional context

On latest version