Skip to content

fix: remove onSelectSlot event handler as its only creating empty ev…#2590

Open
geraldhoxha95 wants to merge 1 commit into
bigcalendar:masterfrom
geraldhoxha95:fix-empty-event
Open

fix: remove onSelectSlot event handler as its only creating empty ev…#2590
geraldhoxha95 wants to merge 1 commit into
bigcalendar:masterfrom
geraldhoxha95:fix-empty-event

Conversation

@geraldhoxha95
Copy link
Copy Markdown

@geraldhoxha95 geraldhoxha95 commented Apr 28, 2024

The issue was that clicking on a date on the calendar was creating empty events that would fill up the calendar.
This was happening because the onSelectSlot prop was linked to the newEvent function, which was creating empty events.

Removed onSelectSlot.
Functionality now more in align with the other storybook section, Basic Drag n Drop, where clicking on the dates does not do anything.

Closes #2587

@geraldhoxha95 geraldhoxha95 changed the title feat: remove onSelectSlot event handler as its only creating empty ev… fix: remove onSelectSlot event handler as its only creating empty ev… Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking on Day Cell Creates Empty Events Without Event Name Input

2 participants