From c418745bebdcec055d7b7bbaaa0c51528548b06c Mon Sep 17 00:00:00 2001 From: Jonathan Hofmann Date: Wed, 11 Oct 2023 09:19:34 +0200 Subject: [PATCH] fix criteria_remove on checkbox view handle checked on the html element instead of the seemingly not working jquery attr. --- eea/facetednavigation/widgets/checkbox/view.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/eea/facetednavigation/widgets/checkbox/view.js b/eea/facetednavigation/widgets/checkbox/view.js index b7e169ed..8b82fef2 100644 --- a/eea/facetednavigation/widgets/checkbox/view.js +++ b/eea/facetednavigation/widgets/checkbox/view.js @@ -228,12 +228,11 @@ Faceted.CheckboxesWidget.prototype = { criteria_remove: function (value, element) { // Remove all if (!value) { - this.elements.attr("checked", false); - this.do_query(); + this.element.each((_, e) => (e.checked = false)); } else { - element.attr("checked", false); - this.do_query(); + element.each((_, e) => (e.checked = false)); } + this.do_query(); }, count: function (sortcountable) {