fix scroll top

This commit is contained in:
John Mitchell
2018-11-19 11:03:03 -05:00
parent 01d891cd6e
commit 35d5bde690

View File

@@ -310,11 +310,11 @@ angular
}
if(!_.isEqual(toParamsWithoutSearchKeys, fromParamsWithoutSearchKeys)) {
document.querySelector('.at-Layout-main').scrollTop = 0;
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
}
else {
document.querySelector('.at-Layout-main').scrollTop = 0;
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
if (trans.from().name === 'license' && trans.params('to').hasOwnProperty('licenseMissing')) {