1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-26 16:44:22 +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

@@ -0,0 +1,5 @@
---
'slate': patch
---
Fix the 'select' parameter of the insertNodes function has been overridden

View File

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