diff --git a/packages/slate/src/utils/path-utils.js b/packages/slate/src/utils/path-utils.js index aa51213a96..078f7ad1aa 100644 --- a/packages/slate/src/utils/path-utils.js +++ b/packages/slate/src/utils/path-utils.js @@ -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])