react-grid-layout / react-grid-layout/react-draggable

DraggableCore.componentWillUnmount Cannot read property 'ownerDocument' of null

Open
#275 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
9.3k
Forks
1k
Avg merge
3d 8h
Merged PRs (30d)
4

Description

I'm using with webpack 2.0 to build bundle and I've this error message:
react-draggable.js:2085 Uncaught TypeError: Cannot read property 'ownerDocument' of null at DraggableCore.componentWillUnmount (react-draggable.js:2085) at ReactCompositeComponent.js:408

seems it hasn't check null yet

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at DraggableCore.componentWillUnmount, identified in the react-draggable.js stack trace around line 2085, and reproduce the failure with the reported webpack 2.0 bundle and unmount path. Trace why the relevant value is null and verify that unmounting in that state no longer throws the ownerDocument error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.