From 630e121acd2c912b124f9b2280be8513342a1229 Mon Sep 17 00:00:00 2001 From: rhol Date: Mon, 9 Aug 2021 11:44:32 +0200 Subject: [PATCH] fix(sorting-plp): Remove parent selector --- view/frontend/web/js/toolbar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/view/frontend/web/js/toolbar.js b/view/frontend/web/js/toolbar.js index ab7c6250..b8909dd4 100644 --- a/view/frontend/web/js/toolbar.js +++ b/view/frontend/web/js/toolbar.js @@ -25,10 +25,10 @@ define([ var hasForm = $(this.options.filterFormSelector).length > 0; this.options.ajaxFilters = this.options.ajaxFilters && hasForm; - this._bind(element.find(options.modeControl), options.mode, options.modeDefault); - this._bind(element.find(options.directionControl), options.direction, options.directionDefault); - this._bind(element.find(options.orderControl), options.order, options.orderDefault); - this._bind(element.find(options.limitControl), options.limit, options.limitDefault); + this._bind($(options.modeControl), options.mode, options.modeDefault); + this._bind($(options.directionControl), options.direction, options.directionDefault); + this._bind($(options.orderControl), options.order, options.orderDefault); + this._bind($(options.limitControl), options.limit, options.limitDefault); if (options.ajaxFilters) { $(element).on('click', options.pagerItemSelector, this.handlePagerClick.bind(this)); }