Comment field focus after render
This commit is contained in:
parent
ed78059ec5
commit
095da4cc7a
|
@ -19,9 +19,8 @@ export default class TextEntryField extends Component {
|
|||
|
||||
// Focus on render
|
||||
onRender = ref => {
|
||||
if (ref && this.props.editable) {
|
||||
ref.focus();
|
||||
}
|
||||
if (ref && this.props.editable)
|
||||
setTimeout(() => ref.focus(), 1);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
Loading…
Reference in New Issue