-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Description
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