react-grid-layout / react-grid-layout/react-draggable
DraggableCore.componentWillUnmount Cannot read property 'ownerDocument' of null
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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