Commit 496f82e
Get ownerDocument before calling onStop handlers (#198)
If a draggable onStop handler causes the wrapped component to unmount,
ReactDOM.findDOMNode will error with “Uncaught Invariant Violation:
findDOMNode was called on an unmounted component”. This avoids that.
Plus it’s cleaner.1 parent 8542089 commit 496f82e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | | - | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| |||
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
321 | | - | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
0 commit comments