This commit is contained in:
Ran Luo 2019-09-26 23:36:45 +08:00 committed by Felix Häusler
parent 683b25b876
commit 1fef2c6ee8

View File

@ -423,7 +423,7 @@ const enterCtrl = ContentState => {
// cursor at end of paragraph or at begin of paragraph
if (type === 'li') {
if (block.listItemType === 'task') {
const { checked } = block.children[0]
const checked = false
newBlock = this.createTaskItemBlock(null, checked)
} else {
newBlock = this.createBlockLi()