Skip to content

findDOMNode is deprecated in StrictMode & is breaking functionality #2193

Closed
@Inrixia

Description

@Inrixia

Check that this is really a bug

  • I confirm

Reproduction link

Its obvious

Bug description

I have just enabled the popup prop re this example: https://jquense.github.io/react-big-calendar/examples/index.html?path=/story/examples--example-6

After doing so when there are too many events to be displayed the popup text renders properly
image
but clicking on it does nothing and I have the following error in console:
image

Expected Behavior

Clicking the prompt would show events.

Actual Behavior

Clicking the prompt does nothing and there is a issue with findDOMNode in console being deprecated.

Presumably all that is needed to fix this is to replace the usage of findDOMNode with useRef.

react-big-calendar version

0.40.2

React version

18.0.14

Platform/Target and Browser Versions

Create React Defaults

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 (unchecked as I can't get the library to build happily in my dev env)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions