Skip to content

Commit

Permalink
Merge pull request #431 from NeOMakinG/qa-fixes
Browse files Browse the repository at this point in the history
Initiate useQuantityInput on facetedsearch dom change
  • Loading branch information
kpodemski authored Jan 11, 2023
2 parents 28a6d14 + 8395133 commit 8b0e55e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/modules/facetedsearch/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* file that was distributed with this source code.
*/

import useQuantityInput from '@js/components/useQuantityInput';

// @TODO(NeOMakinG): Refactor this file, it comes from facetedsearch or classic
export const parseSearchUrl = function (event: {target: HTMLElement}) {
if (event.target.dataset.searchUrl !== undefined) {
Expand Down Expand Up @@ -96,6 +98,7 @@ export default () => {

prestashop.on(events.updateProductList, (data: Record<string, never>) => {
updateProductListDOM(data);
useQuantityInput();
window.scrollTo(0, 0);
});
};

0 comments on commit 8b0e55e

Please sign in to comment.