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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user