1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Fix the behavior of a feature what locks the editor

This commit is contained in:
asmsuechan
2017-03-17 23:16:53 -07:00
parent b7ca4668e9
commit 4767f15e9b

View File

@@ -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 () {