-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
Check that this is really a bug
- I confirm
Reproduction link
https://codesandbox.io/p/devbox/react-big-calendar-example-forked-tpnyq8
Bug description
When using the latest version of react-big-calendar, the prop dragFromOutsideItem seems to be expected even if it’s not defined.
If I don’t provide it, I get the following error:
TypeError: _this.context.draggable.dragFromOutsideItem is not a function
Expected Behavior
if dragFromOutsideItem is not defined, the calendar should handle it gracefully instead of throwing an exception.
Actual Behavior
When dragFromOutsideItem is not defined, after dropping an event, an error is thrown
react-big-calendar version
1.19.4
React version
19.0.0
Platform/Target and Browser Versions
Chrome
Validations
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- Make sure this is a react-big-calendar issue and not an implementation issue
Would you like to open a PR for this bug?
- I'm willing to open a PR