I'm using django and I have some modal forms and buttons (which leads to other urls) and in all except one of the buttons it keeps appearing the alert of unsaved changes.
I have tried to prevent it with window.onbeforeunload and various returns: return; return null; return void(0); but doesn't seem to patch my problem.
I wanted to ask what should I look for in my code to search what could be the source causing this alert to appear, the only submits I have are on the modals