Skip to content

fix: guard handleDragStart in show-more popup (#2786)#2792

Open
joemcbroom wants to merge 1 commit into
bigcalendar:masterfrom
joemcbroom:fix/2786-popup-handleDragStart-guard
Open

fix: guard handleDragStart in show-more popup (#2786)#2792
joemcbroom wants to merge 1 commit into
bigcalendar:masterfrom
joemcbroom:fix/2786-popup-handleDragStart-guard

Conversation

@joemcbroom
Copy link
Copy Markdown

@joemcbroom joemcbroom commented Feb 6, 2026

Fixes #2786

When the show-more popup is open and the user drags an event, the code called handleDragStart without checking if it was provided. That optional prop is not always set, which caused Uncaught TypeError: handleDragStart is not a function.

This change only calls handleDragStart when it is a function (typeof handleDragStart === 'function'), so the popup works when the prop is omitted.

@joemcbroom joemcbroom force-pushed the fix/2786-popup-handleDragStart-guard branch from fec0926 to 0123c12 Compare February 6, 2026 15:57
Check that handleDragStart is a function before calling it when user
drags an event from the show-more popup. Prevents Uncaught TypeError
when the optional prop is not set.
@joemcbroom joemcbroom force-pushed the fix/2786-popup-handleDragStart-guard branch from 0123c12 to 6d2ffe1 Compare February 6, 2026 15:59
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.

Show More Popup - Uncaught TypeError: handleDragStart is not a function

1 participant