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)
This commit is contained in:
balibabu 2024-06-28 17:32:38 +08:00 committed by GitHub
parent f26d01dfa3
commit 751447bd4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {