Skip to content

Commit

Permalink
Merge pull request #32 from mageplaza/2.4-develop
Browse files Browse the repository at this point in the history
2.4 develop
  • Loading branch information
haitv282 authored May 30, 2022
2 parents dc66759 + 64e9df5 commit c7d7842
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "mageplaza/module-ajax-layered-navigation",
"description": "Magento 2 Ajax Layered Navigation Extension",
"require": {
"mageplaza/module-core": "^1.4.5"
"mageplaza/module-core": "^1.4.12"
},
"type": "magento2-module",
"version": "4.0.4",
"version": "4.0.5",
"license": "proprietary",
"authors": [
{
Expand Down
12 changes: 8 additions & 4 deletions view/frontend/web/js/action/submit-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ define(
'jquery',
'mage/storage',
'Mageplaza_AjaxLayer/js/model/loader',
'mage/apply/main'
'mage/apply/main',
'ko'
],
function ($, storage, loader, mage) {
function ($, storage, loader, mage, ko) {
'use strict';

var productContainer = $('#layer-product-list'),
layerContainer = $('.layered-filter-block-container'),
var productContainer = $('#layer-product-list'),
layerContainer = $('.layered-filter-block-container'),
quickViewContainer = $('#mpquickview-popup');

return function (submitUrl, isChangeUrl, method) {
Expand Down Expand Up @@ -77,6 +78,9 @@ define(
quickViewContainer.html(response.quickview);
}

ko.cleanNode(productContainer[0]);
productContainer.applyBindings();

if (mage) {
mage.apply();
}
Expand Down

0 comments on commit c7d7842

Please sign in to comment.