Skip to content

Uncaught TypeError: Cannot use 'in' operator to search for 'window' in undefined #2201

@LiniovasDovydas

Description

@LiniovasDovydas

Check that this is really a bug

  • I confirm

Reproduction link

https://jquense.github.io/react-big-calendar/examples/index.html?path=/story/addons-drag-and-drop--example-2

Bug description

TimeGrid fails to measure gutter width due to gutter being undefined.

Expected Behavior

Gutter is measured

Actual Behavior

Fails to measure the gutter due to invalid ref to the gutter dom element

react-big-calendar version

0.40.4

React version

^16.14.0 || ^17 || ^18

Platform/Target and Browser Versions

Chrome, Edge, Firefox

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