Get ownerDocument before calling onStop handlers (#198)
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.
STRML/react-draggable,mzabriskie/react-draggable,STRML/react-draggable,hemnstill/react-draggable,hemnstill/react-draggable,mzabriskie/react-draggable,STRML/react-draggable,hemnstill/react-draggable,hemnstill/react-draggable,mzabriskie/react-draggable