diff --git a/composer.json b/composer.json index bf7a661..61c871b 100644 --- a/composer.json +++ b/composer.json @@ -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": [ { diff --git a/view/frontend/web/js/action/submit-filter.js b/view/frontend/web/js/action/submit-filter.js index 00f4b2b..bfb35c7 100644 --- a/view/frontend/web/js/action/submit-filter.js +++ b/view/frontend/web/js/action/submit-filter.js @@ -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) { @@ -77,6 +78,9 @@ define( quickViewContainer.html(response.quickview); } + ko.cleanNode(productContainer[0]); + productContainer.applyBindings(); + if (mage) { mage.apply(); }