WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a0f42f2

Browse files
committed
fix: supplement of (fix: Prevent ReactEditor.toDOMRange crash in setDomSelection ianstormtaylor#5741)
1 parent 6aace0d commit a0f42f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/slate-dom/src/plugin/with-dom.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ export const withDOM = <T extends BaseEditor>(
210210
case 'remove_node':
211211
case 'merge_node':
212212
case 'move_node':
213-
case 'split_node': {
213+
case 'split_node':
214+
case 'insert_text':
215+
case 'remove_text':
216+
case 'set_selection': {
214217
IS_NODE_MAP_DIRTY.set(e, true)
215218
}
216219
}

0 commit comments

Comments
 (0)