From d27b9fd245ecd3762592fc7ddf067686493dc6a7 Mon Sep 17 00:00:00 2001 From: Krister Haverinen Date: Thu, 21 Sep 2023 14:59:06 +0300 Subject: [PATCH] UHF-8839: Update selector to match all templates --- src/js/search-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/search-helper.js b/src/js/search-helper.js index 2030d18d7..f237fb220 100644 --- a/src/js/search-helper.js +++ b/src/js/search-helper.js @@ -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');