Skip to content

Commit

Permalink
fix: supplement of (fix: Prevent ReactEditor.toDOMRange crash in setD…
Browse files Browse the repository at this point in the history
…omSelection ianstormtaylor#5741)
  • Loading branch information
zhi-zhi-zhi committed Jan 13, 2025
1 parent 6aace0d commit ec36e21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/slate-dom/src/plugin/with-dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ export const withDOM = <T extends BaseEditor>(
case 'remove_node':
case 'merge_node':
case 'move_node':
case 'split_node': {
case 'split_node':
case 'insert_text':
case 'remove_text':
case 'set_selection': {
IS_NODE_MAP_DIRTY.set(e, true)
}
}
Expand Down

0 comments on commit ec36e21

Please sign in to comment.