From 9279246a2669eb46f5469e7c2a8f0050bea99614 Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 23 Apr 2024 16:15:12 -0700 Subject: [PATCH] remove unnecessary `trimEnd()` --- src/view/com/composer/text-input/TextInput.web.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx index 1038fe5db7..53ba8519d0 100644 --- a/src/view/com/composer/text-input/TextInput.web.tsx +++ b/src/view/com/composer/text-input/TextInput.web.tsx @@ -185,7 +185,7 @@ export const TextInput = React.forwardRef(function TextInputImpl( }, onUpdate({editor: editorProp}) { const json = editorProp.getJSON() - const newText = editorJsonToText(json).trimEnd() + const newText = editorJsonToText(json) const mayBePaste = newText.length > prevLength.current + 1 const newRt = new RichText({text: newText})