Allow attaching the same file twice (#471)
This commit is contained in:
@@ -13,6 +13,8 @@ export function useAttachments() {
|
||||
if (e.target.files && e.target.files.length > 0) {
|
||||
const files = Array.from(e.target.files);
|
||||
setAttachments((attachments) => [...attachments, ...files]);
|
||||
// Clear the input value so the same file can be selected again
|
||||
e.target.value = "";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user