1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 10:51:44 +02:00

fix: the 'select' parameter of the insertNodes function has been overridden (#5562)

This commit is contained in:
yaokailun
2023-11-22 21:23:31 +08:00
committed by GitHub
parent 9aa573e9b8
commit 91400a8e34
2 changed files with 8 additions and 1 deletions

View File

@@ -30,7 +30,9 @@ export const insertNodes: NodeTransforms['insertNodes'] = (
if (!at) {
at = getDefaultInsertLocation(editor)
select = true
if (select !== false) {
select = true
}
}
if (select == null) {