Skip to content

Warning in getting DOMNode #1

@Tonkonozhenko

Description

@Tonkonozhenko

Hi

I think that there is issue in logic of setting DOMNode here.

I think it must be, but I'm not sure:

DOMNode = typeof this.getDOMNode === 'function' ? (this.refs[options.ref] || this.getDOMNode()) : this.refs[options.ref] || this;

or

DOMNode = this.refs[options.ref] || (typeof this.getDOMNode === 'function' ? this.getDOMNode() : this);

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions