Skip to content

Commit 9d15a45

Browse files
committed
Fixed cells without content waving zero height
1 parent b2e0ab4 commit 9d15a45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/blocks/TableBlockContent/TableBlockContent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ const TableParagraph = createStronglyTypedTiptapNode({
175175
];
176176
},
177177

178-
renderHTML({ HTMLAttributes }) {
179-
return ["p", HTMLAttributes, 0];
178+
renderHTML({ node, HTMLAttributes }) {
179+
return ["p", HTMLAttributes, node.childCount ? 0 : ["br"]];
180180
},
181181
});
182182

0 commit comments

Comments
 (0)