-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
scope: text fieldChanges related to the text field.Changes related to the text field.support: questionCommunity support but can be turned into an improvement.Community support but can be turned into an improvement.
Description
StackOverflow: https://stackoverflow.com/questions/37949394/how-to-set-focus-to-a-materialui-textfield/44587705#44587705
Expand
I have this textfield:<TextField ref="item" />
I want to focus this textfield when I click a button. I have this
React.findDOMNode(this.refs.item).focus();
but it doesn't work.
I tried using a simple <input type="text" ref="item" />
and there's no problem with it.
Please help.
oliviertassinari, pinguinjkeke, pichichi40, troigdome, kongbigy and 9 more
Metadata
Metadata
Assignees
Labels
scope: text fieldChanges related to the text field.Changes related to the text field.support: questionCommunity support but can be turned into an improvement.Community support but can be turned into an improvement.