Hello again @aleksandra_budnik ,
Thank you for your response. I see that the first jsfiddle example that you shared has a missing ‘n’ in line 26 in word ‘column’. But yes, it is a problem that in beforeFilter hook return false not behave correctly in the view. Currently I have a workaround to it, but I would like to change it after the issue is resolved.
For people who experiencing the same issue, my workaround to this is use filters plugin manually change the filter back inside the beforeFIlter hook before returning false.
let prevFormulaStack = []; // keep record of previous filter criteria
let filterInfinitePreventor = false;
hot.addHook(‘beforeFilter’, conditionsStack => {
if (filterInfinitePreventor ) {
filterInfinitePreventor = !filterInfinitePreventor ;
return false;
}
if (case_of_blocking_filter) {
filterInfinitePreventor = true;
const fP = hot.getPlugin(‘filters’);
fP.clearConditions();
prevFormulaStack.forEach((o) => {
o.conditions.forEach(© => {
fP.addCondition(o.column, c.name, c.args, o.operation);
});
});
fP.filter();
return false;
} else {
//case of not blocking filter
prevFormulaStack = conditionsStack; //keep record
return true;
}
});