From 9e755c9d94a6d4e03c4c31f8f780ac7afe5f44d6 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Mon, 5 Jul 2021 21:18:59 +0200 Subject: [PATCH] Bugfix --- src/editor/widgets/comment/TextEntryField.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() {