Skip to content

Commit

Permalink
Add annotation-related ops to path.transform. (#2) (ianstormtaylor#2915)
Browse files Browse the repository at this point in the history
  • Loading branch information
themithy authored and ianstormtaylor committed Aug 19, 2019
1 parent d4b0038 commit 5c4e4f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/slate/src/utils/path-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ function transform(path, operation) {
type === 'set_node' ||
type === 'set_selection' ||
type === 'set_value' ||
type === 'add_annotation' ||
type === 'remove_annotation' ||
type === 'set_annotation' ||
path.size === 0
) {
return List([path])
Expand Down

0 comments on commit 5c4e4f9

Please sign in to comment.