Skip to content

Custom EventWrapper with DnD extension not rendering correctly #2703

@palagonKevo

Description

@palagonKevo

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/4rsg7w

Bug description

Custom EventWrapper with DnD add-on is bugged, it's not rendering correctly. Whenever you add a custom component in the components prop, it crashes and doesn't render the component at all.

Expected Behavior

Seems to be an issue while executing mergeComponents function, which is taking keys as undefined and the forEach function is stating that can't use forEach for undefined. In previous versions, this was working as expected.

Actual Behavior

The whole component is crashing
imagen_2025-01-02_094327280
imagen_2025-01-02_094348741

react-big-calendar version

^1.17.1

React version

^19.0.0

Platform/Target and Browser Versions

Any

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

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions