Skip to content

Commit

Permalink
Fix the behavior of a feature what locks the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
asmsuechan committed Mar 19, 2017
1 parent b7ca466 commit 4767f15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions browser/main/Detail/MarkdownNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 4767f15

Please sign in to comment.