dc-js/dc.js

textFilterWidget : filter is not applied in groups

csavelief opened this issue · 1 comments

When a textFilterWidget is used inside a chartGroup, the charts belonging to this group are not properly filtered.

I believe the problem lies in this piece of code extracted from the dc.textFilterWidget function :

_input.on('input', function () {
           _chart.dimension().filterFunction(_filterFunctionFactory(this.value));
           dc.events.trigger(function () {
               dc.redrawAll();
           }, dc.constants.EVENT_DELAY);
       });

It seems to me that dc.redrawAll(chartGroup) should be called instead of dc.redrawAll().

Duplicate of #1498; please check that you are using 4.2.1 or higher.