Merge pull request #5134 from uinstinct/fix-image-upload
allow to upload same image more than once
This commit is contained in:
commit
54e3b17c6e
1 changed files with 3 additions and 0 deletions
|
|
@ -148,6 +148,9 @@ function InputToolbar(props: InputToolbarProps) {
|
|||
for (const file of files) {
|
||||
props.onImageFileSelected?.(file);
|
||||
}
|
||||
if (fileInputRef.current) {
|
||||
fileInputRef.current.value = "";
|
||||
}
|
||||
}}
|
||||
/>
|
||||
<HoverItem className="">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue