Skip to content

Commit

Permalink
Merge pull request #13003 from chahmedejaz/bugfix/13002-orders-pagina…
Browse files Browse the repository at this point in the history
…tion

[Orders Page] - Fix Pagination not working
  • Loading branch information
dacook authored Nov 27, 2024
2 parents a493d70 + 711f37b commit 3a7aed1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/webpacker/controllers/search_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default class extends Controller {

changePage(event) {
const productsForm = document.querySelector("#products-form");
productsForm.scrollIntoView({ behavior: "smooth" });
if (productsForm) productsForm.scrollIntoView({ behavior: "smooth" });

this.page.value = event.target.dataset.page;
this.submitSearch();
this.page.value = 1;
Expand Down

0 comments on commit 3a7aed1

Please sign in to comment.