balibabu
commited on
Commit
·
dee8078
1
Parent(s):
457df3d
fix: fixed the issue where spaces could not be entered in the message… (#1320)
Browse files### 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)
web/src/pages/chat/hooks.ts
CHANGED
@@ -533,7 +533,7 @@ export const useHandleMessageInputChange = () => {
|
|
533 |
const handleInputChange: ChangeEventHandler<HTMLInputElement> = (e) => {
|
534 |
const value = e.target.value;
|
535 |
const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t');
|
536 |
-
setValue(
|
537 |
};
|
538 |
|
539 |
return {
|
|
|
533 |
const handleInputChange: ChangeEventHandler<HTMLInputElement> = (e) => {
|
534 |
const value = e.target.value;
|
535 |
const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t');
|
536 |
+
setValue(nextValue);
|
537 |
};
|
538 |
|
539 |
return {
|