Skip to content

Commit 4a29900

Browse files
committed
use querySelector and listTop
1 parent ead8f3b commit 4a29900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/modules/facetedsearch/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default () => {
8585
*/
8686
$('body').on('click', Theme.selectors.listing.pagerLink, (event) => {
8787
event.preventDefault();
88-
document.getElementById('js-product-list-top')?.scrollIntoView({block: 'start', behavior: 'auto'});
88+
document.querySelector(Theme.selectors.listing.listTop)?.scrollIntoView({block: 'start', behavior: 'auto'});
8989
prestashop.emit(
9090
events.updateFacets,
9191
$(event.target)?.closest('a')?.get(0)?.getAttribute('href'),

0 commit comments

Comments
 (0)