You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use dragFromOutsideItem, and the user releases the item, it always gets added to the calendar, even if I don't have the events state passing to it and no onDropFromOutside.
Even when I switch between weeks, it still sticks in there and only disappears when I drag a new item.
-I cant get the calendar to work in code sandbox but gave the code anyway
Expected Behavior
I want to use the dragFromOutsideItem, and on the drop, I can choose if I allow the user to drop the event there or not (handle the drop and whether or not to add it into events inside the onDropFromOutside. ) so it is not default added to the calendar
I am having this issue as well. I am attempting to incorporate block-out dates so a user will not be able to drop an event onto one of those days. But there does not seem to be a way to stop the calendar from adding an event to the calendar from outside. If it is a regular from inside event you can stop the drop by returning false in the onEventDrop prop.
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/devbox/737n67?file=%2Fapp%2Fpage.tsx%3A176%2C13
Bug description
When I use dragFromOutsideItem, and the user releases the item, it always gets added to the calendar, even if I don't have the events state passing to it and no onDropFromOutside.
Even when I switch between weeks, it still sticks in there and only disappears when I drag a new item.
-I cant get the calendar to work in code sandbox but gave the code anyway
Expected Behavior
I want to use the dragFromOutsideItem, and on the drop, I can choose if I allow the user to drop the event there or not (handle the drop and whether or not to add it into events inside the onDropFromOutside. ) so it is not default added to the calendar
Screen.Recording.2024-11-06.at.16.35.17.mov
Actual Behavior
No response
react-big-calendar version
1.15.0
React version
18.2.0
Platform/Target and Browser Versions
macOS safari 18.0.1 and on Chrome
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: