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:
5
.changeset/quick-eels-leave.md
Normal file
5
.changeset/quick-eels-leave.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'slate': patch
|
||||
---
|
||||
|
||||
Fix the 'select' parameter of the insertNodes function has been overridden
|
@@ -30,8 +30,10 @@ export const insertNodes: NodeTransforms['insertNodes'] = (
|
||||
|
||||
if (!at) {
|
||||
at = getDefaultInsertLocation(editor)
|
||||
if (select !== false) {
|
||||
select = true
|
||||
}
|
||||
}
|
||||
|
||||
if (select == null) {
|
||||
select = false
|
||||
|
Reference in New Issue
Block a user