From 3f318d948cf2dd98df061ce8e2a9f89c470488a7 Mon Sep 17 00:00:00 2001
From: Alexandros Georgantas <alexgeorg86@gmail.com>
Date: Tue, 25 Apr 2017 14:02:40 +0300
Subject: [PATCH] Isolated note creation and scroll to the position of the
 created note

---
 app/components/SimpleEditor/notesEditor/NotesEditor.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/components/SimpleEditor/notesEditor/NotesEditor.js b/app/components/SimpleEditor/notesEditor/NotesEditor.js
index 304c73f..bc979a3 100644
--- a/app/components/SimpleEditor/notesEditor/NotesEditor.js
+++ b/app/components/SimpleEditor/notesEditor/NotesEditor.js
@@ -118,6 +118,7 @@ class NotesEditor extends ProseEditor {
       let blockNode = tx.create(nodeData)
       tx.update(path, { type: 'insert', pos: findIndex, value: blockNode.id })
     })
+    this.scrollTo(note.id)
   }
 
   removeNote (noteId) {
-- 
GitLab