fix: allow reselecting same file after removal
This commit is contained in:
parent
c6c91435fb
commit
76a1f6e3f2
1 changed files with 1 additions and 0 deletions
|
|
@ -377,6 +377,7 @@ function on_file_input(e) {
|
|||
}
|
||||
function remove_file(file) {
|
||||
files.value = files.value.filter((f) => f !== file);
|
||||
if (file_input.value) file_input.value.value = "";
|
||||
}
|
||||
function toggle_image_cropper(index) {
|
||||
crop_image_with_index.value = show_image_cropper.value ? -1 : index;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue