Skip to content

Commit c7d7842

Browse files
Merge pull request #32 from mageplaza/2.4-develop
2.4 develop
2 parents dc66759 + 64e9df5 commit c7d7842

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "mageplaza/module-ajax-layered-navigation",
33
"description": "Magento 2 Ajax Layered Navigation Extension",
44
"require": {
5-
"mageplaza/module-core": "^1.4.5"
5+
"mageplaza/module-core": "^1.4.12"
66
},
77
"type": "magento2-module",
8-
"version": "4.0.4",
8+
"version": "4.0.5",
99
"license": "proprietary",
1010
"authors": [
1111
{

view/frontend/web/js/action/submit-filter.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ define(
2323
'jquery',
2424
'mage/storage',
2525
'Mageplaza_AjaxLayer/js/model/loader',
26-
'mage/apply/main'
26+
'mage/apply/main',
27+
'ko'
2728
],
28-
function ($, storage, loader, mage) {
29+
function ($, storage, loader, mage, ko) {
2930
'use strict';
3031

31-
var productContainer = $('#layer-product-list'),
32-
layerContainer = $('.layered-filter-block-container'),
32+
var productContainer = $('#layer-product-list'),
33+
layerContainer = $('.layered-filter-block-container'),
3334
quickViewContainer = $('#mpquickview-popup');
3435

3536
return function (submitUrl, isChangeUrl, method) {
@@ -77,6 +78,9 @@ define(
7778
quickViewContainer.html(response.quickview);
7879
}
7980

81+
ko.cleanNode(productContainer[0]);
82+
productContainer.applyBindings();
83+
8084
if (mage) {
8185
mage.apply();
8286
}

0 commit comments

Comments
 (0)