Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 of 5 tasks
cloneali opened this issue Jul 24, 2024 · 0 comments
Open
4 of 5 tasks

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

cloneali opened this issue Jul 24, 2024 · 0 comments
Labels

Comments

@cloneali
Copy link

cloneali commented Jul 24, 2024

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
@cloneali cloneali added the bug label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant