Skip to content

Commit 338262b

Browse files
committed
Small fix
1 parent 6356afe commit 338262b

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/blocks/ListItem/CheckListItem

1 file changed

+1
-1
lines changed

packages/core/src/blocks/ListItem/CheckListItem/block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export const createCheckListItemBlockSpec = createBlockSpec(
9494
},
9595
toExternalHTML(block) {
9696
const dom = document.createDocumentFragment();
97-
addDefaultPropsExternalHTML(block.props, dom);
9897
const checkbox = document.createElement("input");
9998
checkbox.type = "checkbox";
10099
checkbox.checked = block.props.checked;
@@ -105,6 +104,7 @@ export const createCheckListItemBlockSpec = createBlockSpec(
105104
// them in to be semantically correct, which we can't have due to the
106105
// schema.
107106
const paragraph = document.createElement("p");
107+
addDefaultPropsExternalHTML(block.props, paragraph);
108108

109109
dom.appendChild(checkbox);
110110
dom.appendChild(paragraph);

0 commit comments

Comments
 (0)