Fix file input bug for the same file twice
This commit is contained in:
parent
1efd918af4
commit
9498ff9866
@ -149,6 +149,8 @@ function SelectMapModal({
|
||||
URL.revokeObjectURL(url);
|
||||
};
|
||||
image.src = url;
|
||||
// Set file input to null to allow adding the same image 2 times in a row
|
||||
fileInputRef.current.value = null;
|
||||
}
|
||||
|
||||
function openImageDialog() {
|
||||
|
Loading…
Reference in New Issue
Block a user