Skip to content

Unable to focus using ref #32

Open
@sjain-mi9

Description

@sjain-mi9

I'm trying to focus on DynamicNumber, but it throws error as cannot read focus of null. I'm targeting from onChange of another component. Simple example of what I have done:

xyz = () => {
this.abc.focus();
}

<DynamicNumber
ref={(input) => { this.abc = input; }}
/>

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