瀏覽代碼

fix: fixed the issue where spaces could not be entered in the message… (#1320)

### What problem does this PR solve?

fix: fixed the issue where spaces could not be entered in the message
input box #1314
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.8.0
balibabu 1 年之前
父節點
當前提交
751447bd4f
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      web/src/pages/chat/hooks.ts

+ 1
- 1
web/src/pages/chat/hooks.ts 查看文件

@@ -533,7 +533,7 @@ export const useHandleMessageInputChange = () => {
const handleInputChange: ChangeEventHandler<HTMLInputElement> = (e) => {
const value = e.target.value;
const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t');
setValue(trim(nextValue));
setValue(nextValue);
};

return {

Loading…
取消
儲存