Skip to content
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

"Warning: Input.getDOMNode(...) is deprecated. Please use ReactDOM.findDOMNode(instance) instead." #17

Closed
craigdallimore opened this issue Nov 23, 2015 · 3 comments

Comments

@craigdallimore
Copy link

It looks like like this polyfill is using a deprecated method ".getDOMNode()" here. This produces a deprecation warning in the console when used with [email protected].

screen shot 2015-11-23 at 14 34 32

Looks like all it needs is the presence of react-dom and

this.setSelectionIfNeeded(ReactDOM.findDOMNode(this));

Happy to help out if you'd like a PR.

@quantizor
Copy link
Contributor

@craigdallimore Hey, yup we are not updated for 0.14 as of yet. PRs welcome. Note that the final code needs to be backward compatible with <0.13

@craigdallimore
Copy link
Author

Note that the final code needs to be backward compatible with <0.13

Hello @yaycmyk!

I'm not quite sure that there is a good way to satisfy both sides of the breaking change - 0.13 uses this.getDOMNode() and 0.14 prefers ReactDOM.findDOMNode(this).

I believe the point of the warning is to push us to change how we access nodes, as this.getDOMNode is probably not going to work in 0.15.

Is it not acceptable to have a new release that expects ^[email protected] and let [email protected] users stay on [email protected]?

@quantizor
Copy link
Contributor

I'm planning on a rewrite for 2.0.0 that will utilize 0.14

On Nov 26, 2015, at 10:49 AM, Craig Dallimore [email protected] wrote:

Note that the final code needs to be backward compatible with <0.13

Hello @yaycmyk!

I'm not quite sure that there is a good way to satisfy both sides of the breaking change - 0.13 uses this.getDOMNode() and 0.14 prefers ReactDOM.findDOMNode(this).

I believe the point of the warning is to push us to change how we access nodes, as this.getDOMNode is probably not going to work in 0.15.

Is it not acceptable to have a new release that expects ^[email protected] and let [email protected] users stay on [email protected]?


Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants