We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd5720c commit 46435a9Copy full SHA for 46435a9
1 file changed
projects/stream-chat-angular/src/lib/message-input/message-input.component.ts
@@ -452,7 +452,7 @@ export class MessageInputComponent
452
if (this.configService.customPasteEventHandler) {
453
this.configService.customPasteEventHandler(event, this);
454
} else {
455
- if (event.clipboardData?.files) {
+ if (event.clipboardData?.files && event.clipboardData?.files.length > 0) {
456
event.preventDefault();
457
void this.filesSelected(event.clipboardData?.files);
458
}
0 commit comments