fixing issue with scrolling due to UI-router upgrade

This commit is contained in:
Jared Tabor 2017-10-18 16:16:51 -07:00
parent 887a09d052
commit 275e02a8cf

View File

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