Skip to content
Snippets Groups Projects
Commit b96abe08 authored by chris's avatar chris Committed by john
Browse files

fiz

parent aeb0c8f9
No related branches found
No related tags found
No related merge requests found
...@@ -156,7 +156,7 @@ class MiniEditor extends ProseEditor { ...@@ -156,7 +156,7 @@ class MiniEditor extends ProseEditor {
// If isloated note has no content and you keep pressing backspace, // If isloated note has no content and you keep pressing backspace,
// it gets deleted. Set selection to null to prevent that // it gets deleted. Set selection to null to prevent that
const selection = this.editorSession.getSelection() const selection = this.editorSession.getSelection()
if (selection.start.offset === 0 && selection.end.offset === 0) { if (selection.start && selection.start.offset === 0 && selection.end.offset === 0) {
this.editorSession.setSelection(null) this.editorSession.setSelection(null)
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment