Skip to content

Commit 88c6836

Browse files
authored
Disabled attachment button while loading (#648)
1 parent a99a139 commit 88c6836

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/components/ChatInput/ChatInput.jsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,11 @@ export const ChatInput = forwardRef(
432432
/>
433433
)}
434434
<IconButton
435+
{...(isLoading && {
436+
iconProps: { color: "grey" },
437+
})}
435438
Icon={Attachment}
436-
opacity={0.5}
439+
disabled={isLoading}
437440
onPress={onAddAttachmentsClickHandler}
438441
/>
439442
</Container>

0 commit comments

Comments
 (0)