Reset input[type=file] after media is added

Bug: Add file A, remove fie A, add file A = nothing happens
pull/49/head
Lim Chee Aun 2023-01-26 00:34:00 +08:00
rodzic b6dfbd0819
commit a1e2207e96
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -949,6 +949,8 @@ function Compose({
return attachments.concat(mediaFiles); return attachments.concat(mediaFiles);
}); });
} }
// Reset
e.target.value = '';
}} }}
/> />
<Icon icon="attachment" /> <Icon icon="attachment" />