fix: relationship + new slate incompatibility

This commit is contained in:
James
2021-09-30 12:36:01 -04:00
parent 08b8f3b40a
commit f42205307e

View File

@@ -38,11 +38,6 @@ const insertRelationship = (editor, { value, relationTo }) => {
}
Transforms.insertNodes(editor, nodes);
const currentPath = editor.selection.anchor.path[0];
const newSelection = { anchor: { path: [currentPath + 1, 0], offset: 0 }, focus: { path: [currentPath + 1, 0], offset: 0 } };
Transforms.select(editor, newSelection);
ReactEditor.focus(editor);
};