From 275e02a8cf106c489028b51f4d7a507d565f3837 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 18 Oct 2017 16:16:51 -0700 Subject: [PATCH] fixing issue with scrolling due to UI-router upgrade --- awx/ui/client/src/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index c815e59a90..d57ffa44ee 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -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')) {