This commit is contained in:
Philipp Kühn
2019-04-17 23:01:47 +02:00
parent a6d874fbd6
commit 2d1722e3eb

View File

@@ -69,7 +69,7 @@ keepItem = $from.index(-1) > 0
/* Change ends here */ /* Change ends here */
if (!canSplit(tr.doc, $from.pos, 2, types)) return false if (!canSplit(tr.doc, $from.pos, 2, types)) return false
if (dispatch) dispatch(tr.split($from.pos, 2, [{ type: state.schema.nodes.todo_item, attrs: { done: false } }]).scrollIntoView()) if (dispatch) dispatch(tr.split($from.pos, 2, types).scrollIntoView())
return true return true
} }
} }