Skip to content
This repository was archived by the owner on Feb 28, 2018. It is now read-only.
This repository was 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

Description

@gordonk

#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

Activity

  1. albertolive commented on Sep 21, 2016

    @albertolive

    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();
    
  2. albertolive commented on Dec 29, 2016

    @albertolive

    Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions