mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 09:04:31 +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) {
|
if (!at) {
|
||||||
at = getDefaultInsertLocation(editor)
|
at = getDefaultInsertLocation(editor)
|
||||||
|
if (select !== false) {
|
||||||
select = true
|
select = true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (select == null) {
|
if (select == null) {
|
||||||
select = false
|
select = false
|
||||||
|
Reference in New Issue
Block a user