-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Actions buttons don't do anytning, silently fail. #2434
Comments
Your reproduction link gives me the following message |
@cutterbl my apologies, I have changed permissions, you can now view the sandbox. |
@Dujota still getting the same message |
@cutterbl for some reason codesandbox is not allowing me to share this, the repo imported is public, the sandbox is public, so im not sure what the deal is. I have a repository that re-creates this issue, you can fork it and then bring it into your sandbox? maybe that can also work? https://github.com/Dujota/react-big-calendar-demo all you need is the env vars which are .env file:
let me know if that works for you, in the meantime i sent a support ticket to codesandbox for their bug |
I looked through your code and saw the following
A quick review of the view and onView documentation points out the issue here. The |
Turns out this is an issue, though unsure why. Something in the app is clashing with the used version of |
Same here. |
edit: In my case it was just a misunderstanding of the lib. I thought |
This bug happens when React Strict Mode is enabled because of this code https://github.com/jquense/uncontrollable/blob/v7.2.0/src/uncontrollable.js#L82-L84 in combination with https://github.com/jquense/uncontrollable/blob/v7.2.0/src/uncontrollable.js#L39. |
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/github/Dujota/react-big-calendar-demo/demo-rbc?workspaceId=ce7615f6-1791-4730-b586-fee7cce16a0d
Bug description
I can get events to show up and month is the default view, but any of the action buttons on the top (next/back day/week/month/agenda) do not work. they silently fail.
Expected Behavior
you should be able to switch views and be able to navigate through calendar days/months/weeks
Actual Behavior
you get to landing view (default view chosen) and none of the action buttons work.
you can see events etc, but you cant navigate, there is no output in console. no warnings or errors.
onView={() => console.log("onView trigered, but its not doing anything. ")}. is being triggered as it console logs the
react-big-calendar version
"^1.8.1"
React version
18.2.0
Platform/Target and Browser Versions
macOS, Windows, Chrome, IOS
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: