From dfc19c62f8200cfd0b4c32b6fb908a5885fe63e7 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 4 Mar 2022 12:45:23 +0100 Subject: [PATCH] DEV: drops jquery for scroll-top mixin (#16099) --- app/assets/javascripts/discourse/app/mixins/scroll-top.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/mixins/scroll-top.js b/app/assets/javascripts/discourse/app/mixins/scroll-top.js index 8ca49c218ee..dd404f0d771 100644 --- a/app/assets/javascripts/discourse/app/mixins/scroll-top.js +++ b/app/assets/javascripts/discourse/app/mixins/scroll-top.js @@ -7,7 +7,7 @@ const context = { if (isTesting()) { return; } - $(document).scrollTop(0); + document.documentElement.scrollTop = 0; }, };