mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(deployed-chat): prevent multiple simultaneous messages (#1893)
This commit is contained in:
committed by
GitHub
parent
fc162ab236
commit
41f3d506da
@@ -167,6 +167,7 @@ export const ChatInput: React.FC<{
|
||||
}
|
||||
|
||||
const handleSubmit = () => {
|
||||
if (isStreaming) return
|
||||
if (!inputValue.trim() && attachedFiles.length === 0) return
|
||||
onSubmit?.(inputValue.trim(), false, attachedFiles) // false = not voice input
|
||||
setInputValue('')
|
||||
|
||||
Reference in New Issue
Block a user