jquense / react-big-calendar

gcal/outlook like calendar component
http://jquense.github.io/react-big-calendar/examples/index.html
MIT License
7.57k stars 2.2k forks source link

Clicking on Day Cell Creates Empty Events Without Event Name Input #2587

Open totitoti7 opened 2 months ago

totitoti7 commented 2 months ago

Check that this is really a bug

Reproduction link

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

Bug description

When clicking on a day cell within the Drag and Drop (from outside calendar), an empty event is automatically created without providing the user an opportunity to enter the event name or any other details. This behavior is unexpected and can lead to a calendar filled with unnamed events, making it difficult to manage and understand scheduled activities.

https://github.com/jquense/react-big-calendar/assets/125357002/947d4a5a-ece1-49cd-83c9-387cc2fdfdda

Expected Behavior

Clicking on a day cell should either:

Actual Behavior

An empty event is automatically created upon clicking a day cell, leading to a calendar filled with unnamed events and potential confusion for users.

react-big-calendar version

1.11.3

React version

18.2.0

Platform/Target and Browser Versions

macOS

Validations

Would you like to open a PR for this bug?

geraldhoxha95 commented 2 months ago

@totitoti7 small PR here: https://github.com/jquense/react-big-calendar/pull/2590

Aligned the functionality to match the other storybook page, Basic Drag n Drop