From 6f5fdbcaf1d019b1e1f54e55d2189d93bf4b2040 Mon Sep 17 00:00:00 2001 From: Damien Wilson Date: Mon, 25 Sep 2023 15:47:40 +0100 Subject: [PATCH] Use hash in selector. Reduce amount of objects selected --- .../clarity/src/components/c-tabbed-content/tabbed-content.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/themes/clarity/src/components/c-tabbed-content/tabbed-content.js b/web/app/themes/clarity/src/components/c-tabbed-content/tabbed-content.js index ce956f417..054551fbc 100644 --- a/web/app/themes/clarity/src/components/c-tabbed-content/tabbed-content.js +++ b/web/app/themes/clarity/src/components/c-tabbed-content/tabbed-content.js @@ -120,7 +120,8 @@ export default (function ($) { }); // track link clicks in panels - tabbed.panels.find("a") + tabbed.panels + .find('a[href*=\\#]') .on("click", function () { let url = $(this).attr("href");