Skip to content

Button: add focus() method #1740

@Sole-Valero

Description

@Sole-Valero

Steps

It is not possible to call focus() method when you hav a ref to an Button component
<Button ref={(button) => this.buttonRef=button} >Select All

This is a similar issue also solved for Input component:
#1475

Expected Result

this.buttonRef.focus() --> send the focus to the button

Actual Result

Uncaught TypeError:this.buttonRef.focus is not a function

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions