Skip to content

Commit

Permalink
chore: 不预期的修改
Browse files Browse the repository at this point in the history
  • Loading branch information
huangbinjie committed Apr 7, 2024
1 parent 3615f34 commit 12f4bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/welcome/Profile/community/ChatRoomDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ function SendMessageBox({ sendMessage, disabled = false }: SendMessageBoxProps)
function handleChange(env: ChangeEvent<HTMLTextAreaElement>) {
if (textareaRef.current == null) return;
// 其他地方把 value 设置为 '' 后,这里某些 case 会收到换行符号,这里做个处理
if (textareaRef.current.value.slice().trimEnd() === '') {
if (textareaRef.current.value.slice().trim() === '') {
textareaRef.current.value = '';
}
textareaRef.current.style.height = 'auto';
Expand Down

0 comments on commit 12f4bf5

Please sign in to comment.