Remove isUserInputDisabled (#5115)
This commit is contained in:
@@ -1184,9 +1184,6 @@ export default function ChatInput({
|
|||||||
!agentIsReady ||
|
!agentIsReady ||
|
||||||
isExtensionsLoading;
|
isExtensionsLoading;
|
||||||
|
|
||||||
const isUserInputDisabled =
|
|
||||||
isAnyImageLoading || isAnyDroppedFileLoading || isRecording || isTranscribing || isCompacting;
|
|
||||||
|
|
||||||
// Queue management functions - no storage persistence, only in-memory
|
// Queue management functions - no storage persistence, only in-memory
|
||||||
const handleRemoveQueuedMessage = (messageId: string) => {
|
const handleRemoveQueuedMessage = (messageId: string) => {
|
||||||
setQueuedMessages((prev) => prev.filter((msg) => msg.id !== messageId));
|
setQueuedMessages((prev) => prev.filter((msg) => msg.id !== messageId));
|
||||||
@@ -1301,7 +1298,6 @@ export default function ChatInput({
|
|||||||
onBlur={() => setIsFocused(false)}
|
onBlur={() => setIsFocused(false)}
|
||||||
ref={textAreaRef}
|
ref={textAreaRef}
|
||||||
rows={1}
|
rows={1}
|
||||||
disabled={isUserInputDisabled}
|
|
||||||
style={{
|
style={{
|
||||||
maxHeight: `${maxHeight}px`,
|
maxHeight: `${maxHeight}px`,
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
|
|||||||
Reference in New Issue
Block a user