Skip to content

Commit

Permalink
fix: relationship + new slate incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikrut committed Sep 30, 2021
1 parent 08b8f3b commit f422053
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit f422053

Please sign in to comment.