Dropping a file on the message body attached it twice: the editor handles the drop (images inline, other files through onFiles) and prevents the default, then the same event bubbles to the composer, which added every file again. Reported on the forum (t/232).
The composer now skips drops the editor already handled (droppedAttachments). Drops on the header, recipients or attachment strip still attach as before. New test in compose/__tests__/drop-attach.test.tsx.
Dropping a file on the message body attached it twice: the editor handles the drop (images inline, other files through `onFiles`) and prevents the default, then the same event bubbles to the composer, which added every file again. Reported on the forum (t/232).
The composer now skips drops the editor already handled (`droppedAttachments`). Drops on the header, recipients or attachment strip still attach as before. New test in `compose/__tests__/drop-attach.test.tsx`.
Fixes #95
The editor handles a file drop itself (images inline, anything else as
an attachment) and prevents the default, but the event still bubbled
to the composer, which attached every dropped file again. The composer
now leaves a drop the editor has already handled alone.
Fixes#95
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Dropping a file on the message body attached it twice: the editor handles the drop (images inline, other files through
onFiles) and prevents the default, then the same event bubbles to the composer, which added every file again. Reported on the forum (t/232).The composer now skips drops the editor already handled (
droppedAttachments). Drops on the header, recipients or attachment strip still attach as before. New test incompose/__tests__/drop-attach.test.tsx.Fixes #95