Skip to content

Commit 6e5785d

Browse files
committed
Fix wrong invocation of Fragment.from
Issue #10
1 parent a0ad696 commit 6e5785d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export function splitBlock(state, dispatch) {
319319
if (can) {
320320
tr.split(tr.mapping.map($from.pos), 1, types)
321321
if (!atEnd && !$from.parentOffset && $from.parent.type != deflt &&
322-
$from.node(-1).canReplace($from.index(-1), $from.indexAfter(-1), Fragment.from(deflt.create(), $from.parent)))
322+
$from.node(-1).canReplace($from.index(-1), $from.indexAfter(-1), Fragment.from([deflt.create(), $from.parent])))
323323
tr.setNodeMarkup(tr.mapping.map($from.before()), deflt)
324324
}
325325
dispatch(tr.scrollIntoView())

0 commit comments

Comments
 (0)