Fix error.
authorAlexandre Segura <mex.zktk@gmail.com>
Wed, 28 Jun 2017 14:43:35 +0200
changeset 103 dc906a578616
parent 102 b0e36664f1f2
child 104 d48a74232d22
Fix error.
client/src/components/SlateEditor.js
--- a/client/src/components/SlateEditor.js	Wed Jun 28 13:29:07 2017 +0200
+++ b/client/src/components/SlateEditor.js	Wed Jun 28 14:43:35 2017 +0200
@@ -376,7 +376,11 @@
     })
 
     Object.assign(category, {
-      text: currentSelectionText
+      text: currentSelectionText,
+      selection: {
+        start: currentSelectionStart,
+        end: currentSelectionEnd,
+      },
     });
     categories = categories.push(category);