Skip to content
Snippets Groups Projects
Commit 3f318d94 authored by Alexandros Georgantas's avatar Alexandros Georgantas Committed by john
Browse files

Isolated note creation and scroll to the position of the created note

parent f83220f5
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,7 @@ class NotesEditor extends ProseEditor { ...@@ -118,6 +118,7 @@ class NotesEditor extends ProseEditor {
let blockNode = tx.create(nodeData) let blockNode = tx.create(nodeData)
tx.update(path, { type: 'insert', pos: findIndex, value: blockNode.id }) tx.update(path, { type: 'insert', pos: findIndex, value: blockNode.id })
}) })
this.scrollTo(note.id)
} }
removeNote (noteId) { removeNote (noteId) {
......
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