-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar Navigation and View Controls Not Functioning #2720
Comments
I was unable to reproduce this on any of the calendars on your reproduction page. Does this happen to you for every single calendar on the example site? |
Wasn't working for me in my local setup as well, even though i had set it up according to the docs and examples, export const useCustomCalendar = () => {
const [view, setView] = useState<View>('week');
const [date, setDate] = useState<Date>(new Date());
const onView = useCallback((view: View) => {
setView(view);
}, []);
const onNavigate = useCallback((date: Date) => {
setDate(date);
}, []);
return {
view,
date,
onView,
onNavigate,
};
}; |
I'm also experiencing this in React 19. Console error:
|
@ardenc I am trying different browsers, but it's not working. I tried it in the old version of ReactJS, and it's fine. The problem only occurs in the new version of ReactJS 19. |
@NikhilBhagoria ah, |
@ardenc I'm on RBC 1.18.0 (new release) and this bug is still present |
@ericvanular I spun up a quick Nextjs example using React 19 and RBC and it appears to work as expected for me. I see the out of date transform as you stated but the calendar itself appears to navigate as expected. https://codesandbox.io/p/devbox/tlxwg8?file=%2Fapp%2Fpage.tsx%3A16%2C16 |
@ardenc thanks for your help with this. I double checked and my project is definitely on React 19.0.0 and RBC is on 1.18.0 - although I'm using Vite not Next. Perhaps there is some side effect coming from another package? |
@ericvanular Experiencing the same here on React 19.0.0 and RBC 1.18.0 using Vite. Downgrading to v18 seems to work. |
Check that this is really a bug
Reproduction link
https://jquense.github.io/react-big-calendar/examples/index.html?path=/docs/additional-examples-event-durations--daylight-savings-starts
Bug description
Description
Both the navigation buttons (Today/Back/Next) and view controls (Month/Week/Day/Agenda) in the Calendar component are not working. Users cannot navigate through dates or switch between different calendar views.
Expected Behavior
Navigation buttons:
View controls:
Actual Behavior
Navigation buttons:
View controls:
react-big-calendar version
1.17.1
React version
19.0.0
Platform/Target and Browser Versions
Chrome
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: