mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-11-03 11:20:26 +00:00
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
@ -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…
x
Reference in New Issue
Block a user