Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tswfi committed Nov 28, 2023
1 parent a67ebe8 commit ead8f3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/modules/facetedsearch/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,13 @@ export default () => {
*/
$('body').on('click', Theme.selectors.listing.pagerLink, (event) => {
event.preventDefault();
document.getElementById('js-product-list-top')?.scrollIntoView({block: "start", behavior: "auto"});
document.getElementById('js-product-list-top')?.scrollIntoView({block: 'start', behavior: 'auto'});
prestashop.emit(
events.updateFacets,
$(event.target)?.closest('a')?.get(0)?.getAttribute('href'),
);
});


if ($(Theme.selectors.listing.list).length) {
window.addEventListener('popstate', (e) => {
const {state} = e;
Expand Down
1 change: 1 addition & 0 deletions src/scss/custom/components/category/_product-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#js-product-list-top {
scroll-margin: 120px;
}

.products-selection {
margin-bottom: 1.25rem;

Expand Down

0 comments on commit ead8f3b

Please sign in to comment.