From 35d5bde69002175f7d9e9839d0774b7f4655129e Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 19 Nov 2018 11:03:03 -0500 Subject: [PATCH] fix scroll top --- 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 d4b55f78f9..e5ebe9c776 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -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')) {