Skip to content

Bug: Drag and Drop not functioning properly and duplicating events #2582

@OnsKharrat06

Description

@OnsKharrat06

Check that this is really a bug

  • I confirm

Reproduction link

https://jquense.github.io/react-big-calendar/examples/index.html?path=/docs/addons-drag-and-drop--example-2

Bug description

Hello community,

It came to my attention that in the resources Drag and Drop (under ADDONS/ Drag and Drop/ Props), there is a checkbox with the following option (Keep copy of dragged "source" event in its original resource slot). Despite unchecking this option, the drugged events keep on duplicating without deleting the old event.

As shown in the recording below, the more we move the event, the more duplications get created.

bug_drag.and.drop.mov

Expected Behavior

The expected behavior should be to move the event from one time slot to another without duplications.

Actual Behavior

The current behavior is that the event is getting duplicated as we move it from one time slot to another. The required drag and drop behavior is not applied.

react-big-calendar version

1.11.3

React version

18.2.0

Platform/Target and Browser Versions

macOS

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions