How to remove trailingBreak from inside a custom block node

I have a custom block node with two custom inline nodes inside to accept text input, but there’s a br trailingBreak followed in this custom block, how to remove this break? Even I have a p node after the custom block node, the br trailingBreak is still there.

Blocks with inline content are rendered with a trailing <br>. If those nodes are actually inline, that <br> won’t change the way the browser displays the node. If you’re using flexbox or something, it might be better to mark those inner nodes as blocks instead.