diff --git a/src/editor/widgets/comment/TextEntryField.jsx b/src/editor/widgets/comment/TextEntryField.jsx index eb7664d..7caa7ce 100644 --- a/src/editor/widgets/comment/TextEntryField.jsx +++ b/src/editor/widgets/comment/TextEntryField.jsx @@ -20,9 +20,8 @@ export default class TextEntryField extends Component { } componentDidMount() { - if (this.props.focus && this.element.current) { + if (this.props.focus && this.element.current) this.element.current.focus({ preventScroll: true }); - } } render() {