Skip to content

Drag and Drop example code has issues when dropping to / from all-day events #2601

@ganning127

Description

@ganning127

Check that this is really a bug

  • I confirm

Reproduction link

Screen.Recording.2024-05-12.at.11.11.22.PM.mov

Bug description

In the Drag and Drop example, there are two bugs:

  1. When dragging an event from the weekly calendar portion TO make it an all day event, it does not work (and just goes back to where it was before the drag)
  2. When dragging an event from the all day portion TO the weekly calendar portion (to not make it an all day event), it does not work (and just goes back to the all day portion)

Expected Behavior

  1. Dragging an event from the weekly calendar portion to the all day portion, the event should become an all day event
  2. Dragging an event fro the all day portion to the weekly calendar portion, the event should no longer be an all day event.

Actual Behavior

See above for actual behavior.

react-big-calendar version

1.12.1

React version

11.11.4

Platform/Target and Browser Versions

macOS Chrome Sonoma 14.4.1

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions