mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 20:40:19 +02:00
* fix: supplement of (fix: Prevent ReactEditor.toDOMRange crash in setDomSelection #5741) * Update packages/slate-dom/src/plugin/with-dom.ts * Update packages/slate-dom/src/plugin/with-dom.ts * Create gold-tomatoes-grab.md * Update packages/slate-dom/src/plugin/with-dom.ts * Update packages/slate-dom/src/plugin/with-dom.ts --------- Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
This commit is contained in:
5
.changeset/gold-tomatoes-grab.md
Normal file
5
.changeset/gold-tomatoes-grab.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'slate-dom': patch
|
||||
---
|
||||
|
||||
fix: additional fix for previous fix: Prevent ReactEditor.toDOMRange crash in setDomSelection #5741
|
@@ -210,7 +210,12 @@ 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': {
|
||||
// FIXME: Rename to something like IS_DOM_EDITOR_DESYNCED
|
||||
// to better reflect reality, see #5792
|
||||
IS_NODE_MAP_DIRTY.set(e, true)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user