eliason1 commited on
Commit
2f6386c
·
verified ·
1 Parent(s): 8c1f818

Upload 100 files

Browse files
frontend/src/components/Chat/ChatInput.tsx CHANGED
@@ -62,7 +62,7 @@ interface ChatInputProps {
62
  isProcessing?: boolean;
63
  }
64
 
65
- export default function ChatInput({ onSend, disabled = false, isProcessing = false }: ChatInputProps) {
66
  const [input, setInput] = useState('');
67
  const inputRef = useRef<HTMLTextAreaElement>(null);
68
  const [selectedModelId, setSelectedModelId] = useState<string>(MODEL_OPTIONS[0].id);
@@ -160,7 +160,7 @@ export default function ChatInput({ onSend, disabled = false, isProcessing = fal
160
  multiline
161
  maxRows={6}
162
  value={input}
163
- onChange={(e) => setInput(e.target.value)}
164
  onKeyDown={handleKeyDown}
165
  placeholder="Ask anything..."
166
  disabled={disabled}
 
62
  isProcessing?: boolean;
63
  }
64
 
65
+ export default function ChatInput({ onSend, disabled = false }: ChatInputProps) {
66
  const [input, setInput] = useState('');
67
  const inputRef = useRef<HTMLTextAreaElement>(null);
68
  const [selectedModelId, setSelectedModelId] = useState<string>(MODEL_OPTIONS[0].id);
 
160
  multiline
161
  maxRows={6}
162
  value={input}
163
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) => setInput(e.target.value)}
164
  onKeyDown={handleKeyDown}
165
  placeholder="Ask anything..."
166
  disabled={disabled}