mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +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()
|
||||
ee.emit('editor:lock')
|
||||
this.setState({ isLocked: !this.state.isLocked })
|
||||
if (this.state.isLocked) this.focus()
|
||||
}
|
||||
|
||||
getToggleLockButton () {
|
||||
|
||||
Reference in New Issue
Block a user