Incorrect return values in onbeforeunload event handler mean that the unsaved changes popup is shown despite there being no changes.
@@ -35,12 +35,12 @@ export class Tracker {
$window.onbeforeunload = () => {
if (this.ignoreChanges()) {
- return '';
+ return null;
}
if (this.hasChanges()) {
return 'There are unsaved changes to this dashboard';
};
scope.$on('$locationChangeStart', (event, next) => {