From 1a60f514601f8b0bedb0d2ebc50f1fef8061e207 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 5 Apr 2020 22:48:48 -0700 Subject: [PATCH] fix: Attempt to focus readonly editor fix: Non-grow clickable padding beneath editor regression --- app/scenes/Document/components/Document.js | 2 +- app/scenes/Document/components/Editor.js | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/scenes/Document/components/Document.js b/app/scenes/Document/components/Document.js index e316a24b..52a16b02 100644 --- a/app/scenes/Document/components/Document.js +++ b/app/scenes/Document/components/Document.js @@ -345,7 +345,7 @@ class DocumentScene extends React.Component { )} )} - + {ui.tocVisible && readOnly && } { editor: ?Editor; - componentDidMount() { - if (this.props.title) { - setImmediate(this.focusAtStart); - } - } - focusAtStart = () => { if (this.editor) { this.editor.focusAtStart();