Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Firefox that.refs[that.props.id].getDOMNode is not a function #45

Open
gordonk opened this issue Jul 28, 2016 · 2 comments
Open

Firefox that.refs[that.props.id].getDOMNode is not a function #45

gordonk opened this issue Jul 28, 2016 · 2 comments

Comments

@gordonk
Copy link

gordonk commented Jul 28, 2016

#15

Error Line: index.js:251
var elem = that.refs[that.props.id].getDOMNode();

Works with
var elem = that.refs[that.props.id]; (now returns node by default)

The above workaround is deprecated and replaced with the following.
var elem = ReactDOM.findDOMNode(that.refs[that.props.id])

Reference:
https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html
http://stackoverflow.com/questions/29527309/react-0-13-this-getdomnode-equivalent-to-react-finddomnode

@albertolive
Copy link

I'm having the same issue with Firefox 49 with Mac OS X El Captain.

TypeError: s.refs[s.props.id].getDOMNode is not a function
File "webpack:///./~/react-ux-password-field/lib/react-ux-password-field.js" line 327 col 1 in     c<.render/<
var elem = that.refs[that.props.id].getDOMNode();

@albertolive
Copy link

Any update?

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

No branches or pull requests

2 participants