Skip to content

Commit

Permalink
fix path transformation bug when moving exactly
Browse files Browse the repository at this point in the history
  • Loading branch information
ianstormtaylor committed Nov 10, 2018
1 parent f3922ed commit 03d531b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/slate/src/utils/path-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ function transform(path, operation) {

if (pAbove) {
path = np.concat(path.slice(p.size))
} else if (pEqual) {
path = np
} else {
if (pEqual) {
path = np
} else if (pYounger) {
if (pYounger) {
path = decrement(path, 1, pIndex)
}

Expand Down

0 comments on commit 03d531b

Please sign in to comment.