0👍
I had a similar issue (I was only testing Firefox and Chrome). I wanted chrome to fire the ‘change’ event even if the same file was selected again.
I did the reset to empty string as shown below below after handling the click event, so for you the code would be like this :
openImage() {
var el = document.getElementById('image-input');
el.click();
el.value = ""; // instead of el.value = null
}.
I dint test Edge browser. Maybe you can try this and tell if it works on Edge also. Hope it helps 🙂
Source:stackexchange.com