Skip to content

Replaced ReacDOM.findDOMNode by using ref #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2019

Conversation

mauro-dellachiesa
Copy link
Contributor

I opened this PR because I found myself with an issue when working with React & React DOM versions 16.2.0.
The error message was
Uncaught Sortable: el must be HTMLElement, and not [object null]
and I fixed it by replacing the use of ReacDOM.findDOMNode with a ref attribute associated to the wrapping component rendered which seems to be the more appropriate way to reference an underlying DOM element with newer React versions (https://reactjs.org/docs/react-dom.html#finddomnode)

@cheton cheton merged commit 8647935 into SortableJS:master Jan 31, 2019
@mauro-dellachiesa
Copy link
Contributor Author

Thanks for merging @cheton!
When can I expect the new version in npm containing this change?

Regards!

@cheton
Copy link
Collaborator

cheton commented Jan 31, 2019

Published v1.5.0. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants