1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-17 20:51:20 +02:00

fix assertPathByKey, fixes #2119

This commit is contained in:
Ian Storm Taylor
2018-08-23 11:32:30 -07:00
parent 729727d91e
commit 5d0f53da3f

View File

@@ -118,7 +118,7 @@ class Text extends React.Component {
if (start.key === end.key) return false
// If the node's path is before the start path, ignore it.
const path = document.assertPathByKey(key)
const path = document.assertPath(key)
if (PathUtils.compare(path, start.path) === -1) return false
// If the node's path is after the end path, ignore it.