Reset input[type=file] after media is added

Bug: Add file A, remove fie A, add file A = nothing happens
This commit is contained in:
Lim Chee Aun 2023-01-26 00:34:00 +08:00
parent b6dfbd0819
commit a1e2207e96

View file

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