facultymatt / angular-unsavedChanges

angular-unsavedChanges
175 stars 81 forks source link

Unsaved dialog appears when I disable the submit button #30

Open frankrod opened 10 years ago

frankrod commented 10 years ago

After I filled all my form and pressed on submit button the Unsaved dialog appears. My submit button called a function and in that function I have an ajax request and in the success part I make a redirect to another location.

This doesn't happen if I don't disable the button.

I am using Angular version 1.2.27