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:
@@ -219,6 +219,7 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
ee.emit('editor:lock')
|
ee.emit('editor:lock')
|
||||||
this.setState({ isLocked: !this.state.isLocked })
|
this.setState({ isLocked: !this.state.isLocked })
|
||||||
|
if (this.state.isLocked) this.focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
getToggleLockButton () {
|
getToggleLockButton () {
|
||||||
|
|||||||
Reference in New Issue
Block a user