From 8c5e56beb72e0a091ae97af61b7f0989d87dc327 Mon Sep 17 00:00:00 2001 From: erdnaxe Date: Fri, 15 Mar 2024 16:49:35 +0000 Subject: [PATCH] Do not scroll to top when clicking challenge tabs (#71) f6b731d748c4433df9e1f40b298c936bb921a4b7 introduced a `href` attribute on the anchors used as Bootstrap tabs. As there is nothing in JS preventing the default click action, this causes this page to scroll to top (sorry). A simple fix would be to use `@onclick.prevent` with AlpineJS, but a cleaner fix is to use button elements. Using anchors as tabs does not really make sense here as users don't need to drag&drop the anchor. --- templates/challenge.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/challenge.html b/templates/challenge.html index 8ea8316..43dce35 100644 --- a/templates/challenge.html +++ b/templates/challenge.html @@ -7,18 +7,18 @@