From 4767f15e9b7f81fa5bda0439f748bcdaf8a628e5 Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Fri, 17 Mar 2017 23:16:53 -0700 Subject: [PATCH] Fix the behavior of a feature what locks the editor --- browser/main/Detail/MarkdownNoteDetail.js | 1 + 1 file changed, 1 insertion(+) diff --git a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/MarkdownNoteDetail.js index 90f26286..4a2be4d0 100644 --- a/browser/main/Detail/MarkdownNoteDetail.js +++ b/browser/main/Detail/MarkdownNoteDetail.js @@ -219,6 +219,7 @@ class MarkdownNoteDetail extends React.Component { e.preventDefault() ee.emit('editor:lock') this.setState({ isLocked: !this.state.isLocked }) + if (this.state.isLocked) this.focus() } getToggleLockButton () {