Skip to content

Commit

Permalink
Make the code actually work 🤦‍♂️
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Oct 17, 2024
1 parent 0097195 commit 5ca45ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/app/themes/clarity/src/globals/js/ajax-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export const renderResults = ({

// If we are on a page greater than 1, focus on the first new result.
if (currentPage > 1) {
const position = (currentPage - 1) * resultsPerPage + 1;
$("#content").children().eq(position).focus();
const index = (currentPage - 1) * resultsPerPage;
$("#content").children().eq(index).find('div.content a').focus();
}
};

Expand Down

0 comments on commit 5ca45ec

Please sign in to comment.