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

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

Open
4 of 5 tasks
totitoti7 opened this issue Apr 26, 2024 · 1 comment · May be fixed by #2590
Open
4 of 5 tasks

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

totitoti7 opened this issue Apr 26, 2024 · 1 comment · May be fixed by #2590
Labels

Comments

@totitoti7
Copy link
Contributor

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

Screen.Recording.2024-04-26.at.6.30.19.PM.mov

Expected Behavior

Clicking on a day cell should either:

  • Do nothing: Simply highlight the selected day without creating an event.
  • Trigger a modal or form: Prompt the user to input event details, including the event name, before creating the event on the calendar.

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

  • 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
@geraldhoxha95
Copy link

@totitoti7 small PR here: #2590

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants