mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-01 05:16:10 +01:00
fix assertPathByKey, fixes #2119
This commit is contained in:
parent
729727d91e
commit
5d0f53da3f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user