facultymatt / angular-unsavedChanges

angular-unsavedChanges
175 stars 81 forks source link

Cancel save of form within tab #36

Open kermtfrg opened 9 years ago

kermtfrg commented 9 years ago

We have our forms setup within tabs. If the user changes data and tries to navigate to another tab without saving the confirm dialog appears correctly. When the user chooses cancel though the tab they selected appears as the selected tab. How can I detect that they clicked cancel and reset the selected tab?