From 5a409ccfa62041c154b0e5735d59b117b8d3dfeb Mon Sep 17 00:00:00 2001 From: Wentao Lyu <35-wentao.lyu@users.noreply.git.stereye.tech> Date: Mon, 13 Mar 2023 12:36:00 +0800 Subject: [PATCH] fix: don't resubmit html label fix: hide the resubmit editor border --- client/src/components/Messages/Message.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/Messages/Message.jsx b/client/src/components/Messages/Message.jsx index 6b313961f0..2d6df0360e 100644 --- a/client/src/components/Messages/Message.jsx +++ b/client/src/components/Messages/Message.jsx @@ -95,7 +95,7 @@ export default function Message({ const wrapText = (text) => ; const resubmitMessage = () => { - const text = textEditor.current.innerHTML + const text = textEditor.current.innerText if (convoError) { dispatch(setError(false)); @@ -163,7 +163,7 @@ export default function Message({
{/*
*/} -
{text}