Skip to content

Custom event does not propperly render when using DnDCalendar #2359

@btalexraescu

Description

@btalexraescu

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/react-big-calendar-withdnd-nr0vek?file=/src/App.js

Bug description

Whenever on an event I want to open a modal that shows up some of the event details. The modal is rendered when I use simle Calendar but does not work when I use Calendar with drag and drop. In order to identify which is the "active" event, I'm keeping an internal state with the id of the clicked event

Expected Behavior

The modal should open

Actual Behavior

The modal does not open

react-big-calendar version

1.6.2

React version

18.2.0

Platform/Target and Browser Versions

MacOs/Ubuntu, Google Chrome

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