Comment field focus after render

This commit is contained in:
Rainer Simon 2020-09-05 13:42:26 +02:00
parent ed78059ec5
commit 095da4cc7a
1 changed files with 2 additions and 3 deletions

View File

@ -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() {