remove unnecessary trimEnd()

This commit is contained in:
Hailey
2024-04-23 16:15:12 -07:00
committed by Dan Abramov
parent 05beb1bbad
commit 9279246a26
@@ -185,7 +185,7 @@ export const TextInput = React.forwardRef(function TextInputImpl(
}, },
onUpdate({editor: editorProp}) { onUpdate({editor: editorProp}) {
const json = editorProp.getJSON() const json = editorProp.getJSON()
const newText = editorJsonToText(json).trimEnd() const newText = editorJsonToText(json)
const mayBePaste = newText.length > prevLength.current + 1 const mayBePaste = newText.length > prevLength.current + 1
const newRt = new RichText({text: newText}) const newRt = new RichText({text: newText})