mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-14 03:03:58 +02:00
Call unref on pathRefs created for move_node (#5727)
* Call unref on pathRefs created for move_node * Create old-frogs-run.md --------- Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
This commit is contained in:
@@ -216,6 +216,8 @@ export const withReact = <T extends BaseEditor>(
|
||||
const [node] = Editor.node(e, pathRef.current)
|
||||
NODE_TO_KEY.set(node, key)
|
||||
}
|
||||
|
||||
pathRef.unref()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user