jquense/react-big-calendar

Duplicate event shows up on month view when try to re-size

cloneali opened this issue · 0 comments

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-1

Bug description

The calendar shows a duplicate event when resizing an event that starts on the 1st day of the row in month view. This can be reproduce on the documentation example, using following steps.

Steps to reproduce:

  1. Select the month view in the calendar.
  2. Drag or move an event that starts on Sunday and bring it back to the same location.
  3. Attempt to resize the same event.

Upon performing the above steps, you will observe that the same event appears in the last week's Monday column when resizing.

video: https://github.com/user-attachments/assets/526d4621-dac0-42f3-a55b-021795214103
Picture: Screenshot 2024-07-24 at 10 44 48 AM

Expected Behavior

It shouldn't show duplicate event when resizing the event as shown in the picture.

Actual Behavior

Its showing duplicate event when resizing the event.

react-big-calendar version

1.13.1

React version

^16.14.0 || ^17 || ^18

Platform/Target and Browser Versions

Chrome, 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