Skip to content

Can I safely use Input.prototype.inputRef? #1980

@mctep

Description

@mctep

Hello!

I need to get a DOM node from Input component. Not for focus only. For example I need to call input.setSelectionRange.

So. I have not found how to get DOM node in the documentation. But I have found inputRef in the code. May be it will be worth to add this property as "public" API in the documentation and TS definitions (like in this #1970)?

At the moment I can get input element only with findDOMNode that is not a good React practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions