react-ux-password-field icon indicating copy to clipboard operation
react-ux-password-field copied to clipboard

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

Open gordonk opened this issue 8 years ago • 2 comments

https://github.com/seethroughtrees/react-ux-password-field/issues/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

gordonk avatar Jul 28 '16 21:07 gordonk

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 avatar Sep 21 '16 10:09 albertolive

Any update?

albertolive avatar Dec 29 '16 15:12 albertolive