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
|
// Focus on render
|
||||||
onRender = ref => {
|
onRender = ref => {
|
||||||
if (ref && this.props.editable) {
|
if (ref && this.props.editable)
|
||||||
ref.focus();
|
setTimeout(() => ref.focus(), 1);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in New Issue