1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-15 11:44:05 +02:00

fix trailing new line (#3280)

This commit is contained in:
Eddy Wilson
2019-12-09 17:40:29 -06:00
committed by Ian Storm Taylor
parent a234667935
commit 7f7f7c9e9d

View File

@@ -69,7 +69,7 @@ const Children = (props: {
<TextComponent <TextComponent
decorations={ds} decorations={ds}
key={key.id} key={key.id}
isLast={isLeafBlock && i === node.children.length} isLast={isLeafBlock && i === node.children.length - 1}
parent={node} parent={node}
renderLeaf={renderLeaf} renderLeaf={renderLeaf}
text={n} text={n}