I am facing a big issue for my project where basically nobody coming from Instagram browser cannot register, because after they upload mandatory image IG browser will reload the page (in normal browsers it works fine).
I even tried to simplify it to native html input - still happening. Also tried to put different attributes according to this question: Mobile browser refreshes page after uploading a photo using Camera but without any success.
You can try it on public URL: https://meetymeety-af1lom2yv-smoothweb.vercel.app/Explore (you need to send it in IG message and open via IG). As you can see the page will always refresh right after image upload.
Any solution for that?
Note: We are using Next.js + React.js, but since these are just simple html inputs not connected to any state or whatever it has no effect on it.
event.preventdefault()
(see sebhastian.com/react-preventdefault)? – Warnke