Ancient 12 years old browser bug. To prevent empty contenteditable elements from collapsing to 0 height Firefox decided to automatically inject <br>. Chrome does not do this and solved it a different way.
To deal with this any <br> tags now always get removed automatically and CSS sets either height or min-height to deal with collapsing input. For Firefox this worked fine, however Chrome still has collapsing input issues where the text in input somehow gets shifted upwards visually and gets shifted back correctly when the cursor clicks on the input field.
Ancient 12 years old browser bug. To prevent empty contenteditable elements from collapsing to 0 height Firefox decided to automatically inject
<br>
. Chrome does not do this and solved it a different way.To deal with this any
<br>
tags now always get removed automatically and CSS sets either height or min-height to deal with collapsing input. For Firefox this worked fine, however Chrome still has collapsing input issues where the text in input somehow gets shifted upwards visually and gets shifted back correctly when the cursor clicks on the input field.