1
0
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:
Hernán Sartorio
2024-09-26 04:24:33 -03:00
committed by GitHub
parent 01dc30b81d
commit 335c54188f
2 changed files with 7 additions and 0 deletions

View File

@@ -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()
}
}