-
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
Event menu does not open when clicking on an event #2514
Comments
What is The Sometimes it's good to check out which
|
I can confirm this is a bug. Version: This is my simple event wrapper which I use for styling purposes based on the type of event:
I recently introduced DnD functionality in my app. Everything seems to be working on initial glance, clicks on week view works. The month view on the other hand is swallowing the click events for some reason due to the wrapper for DnD. If I revert the DnD functionality of react-big-calendar with the exact same code, click events are handled properly on all views. Potential solution: The Either the library needs to expose it as a component for which we can then use to create our own component (with the required DnD context) OR The wrapper needs to be worked on to allow a proper way of adding a wrapper around our component. In this case all the DnD logic needs to be extracted to a separate component. If all you need is to style the existing content of the event you can use the I moved my stuff from the wrapper component to this method to add basic styling:
|
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/xenodochial-currying-dxl85n?file=%2Fsrc%2FApp.js%3A19%2C16
Bug description
When trying to click an event, the menu doesn't open as expected,
but if I don't use withDragAndDrop,
then the problem goes away.
Or if i removed the "props.event.children" in EventComponent also the problem goes away.
You can examine the problem in the link I attached.
NOTE:
I lowered to version 0.40.8 and it works fine
but it doesn't help me because it's too old a version and breaks other things
Expected Behavior
No response
Actual Behavior
The menu will show up as expected with - "WithDragAndDrop"
react-big-calendar version
1.5.2
React version
18.0.2
Platform/Target and Browser Versions
chrome 107.0.5304.107
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: