Skip to content

Commit

Permalink
UHF-8839: Update selector to match all templates
Browse files Browse the repository at this point in the history
  • Loading branch information
xkhaven committed Sep 21, 2023
1 parent 526352c commit d27b9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/search-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Check form ID to prevent mixing on multi-form page
const viewDomId = settings.extraData.view_dom_id;
const resultsContainerEl = $(`[data-id-number=${ viewDomId }]`);
const resultCountEl = $(resultsContainerEl[0]).find('.unit-search__count-container')[0];
const resultCountEl = $('[class$="__count-container"]', resultsContainerEl[0])[0];

if (!resultCountEl) return;
resultCountEl.setAttribute('tabindex', '-1');
Expand Down

0 comments on commit d27b9fd

Please sign in to comment.