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:
parent
f26d01dfa3
commit
751447bd4f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue