Skip to content

Commit a3f0b5c

Browse files
committed
fix: disable selecting multiple files in the MessageInput
1 parent 6d8226d commit a3f0b5c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ui/MessageInput/index.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -522,14 +522,14 @@ const MessageInput = React.forwardRef((props, ref) => {
522522
// It will affect to <Channel /> and <Thread />
523523
onChange={(event) => {
524524
const { files } = event.currentTarget;
525-
onFileUpload(files && files.length === 1 ? files[0] : [...files]);
525+
onFileUpload(files && files.length === 1 ? [files[0]] : [...files]);
526526
event.target.value = '';
527527
}}
528528
accept={getMimeTypesUIKitAccepts(acceptableMimeTypes)}
529-
multiple={
530-
isSelectingMultipleFilesEnabled
531-
&& isChannelTypeSupportsMultipleFilesMessage(channel)
532-
}
529+
// multiple={
530+
// isSelectingMultipleFilesEnabled
531+
// && isChannelTypeSupportsMultipleFilesMessage(channel)
532+
// }
533533
/>
534534
</IconButton>
535535
)

0 commit comments

Comments
 (0)