Skip to content

Commit 46435a9

Browse files
committed
fix: pasting text not working
1 parent bd5720c commit 46435a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

projects/stream-chat-angular/src/lib/message-input/message-input.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ export class MessageInputComponent
452452
if (this.configService.customPasteEventHandler) {
453453
this.configService.customPasteEventHandler(event, this);
454454
} else {
455-
if (event.clipboardData?.files) {
455+
if (event.clipboardData?.files && event.clipboardData?.files.length > 0) {
456456
event.preventDefault();
457457
void this.filesSelected(event.clipboardData?.files);
458458
}

0 commit comments

Comments
 (0)