fix: allow reselecting same file after removal

This commit is contained in:
Pugazhendhi Velu 2025-10-01 10:52:06 +00:00
parent c6c91435fb
commit 76a1f6e3f2

View file

@ -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;