From f27da659920ed9627216680bc63cc98632a7b64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gon=C3=A7alves?= <63736648+MrSpiffyClean@users.noreply.github.com> Date: Mon, 1 Jun 2020 12:01:49 +0100 Subject: [PATCH] Fix scrollToCountries --- vue-definitions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue-definitions.js b/vue-definitions.js index 946b807..d759c0a 100644 --- a/vue-definitions.js +++ b/vue-definitions.js @@ -630,7 +630,7 @@ window.app = new Vue({ }, scrollToCountries() { - const ctw = document.getElementsByClassName('customizetopwrapper')[0]; + const ctw = document.getElementsByClassName('countriestopwrapper')[0]; document.getElementsByClassName('countries')[0].scrollIntoView(); document.getElementsByTagName('aside')[0].scrollBy(0,-parseFloat(getComputedStyle(ctw)['top'])+1); // the +1 avoids a weird (fractional) scrolling issue }