Check that this is really a bug
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
Would you like to open a PR for this bug?
Check that this is really a bug
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 functionExpected 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
Would you like to open a PR for this bug?