Open bmblb opened 1 month ago
Checking the code I noticed that:
missingValue = operatorArgCount > 0 && filter?.value == null;
this probably does not do what it should. multi select picker returns empty array which is not null. Depending on the variable meaning, this could both mean there is a value (empty array) or there is no value (array is empty).(isMultiSelectValueField && filterValues.length > 0)
It is not clear why.I believe this issue is happening because there's no id
on the filter. Draft of a fix in the linked PR.
Forum post
I'm trying to just show the "one of" filter, and have users just add and remove chips, and just looking for support as it's not working as I'd hoped.
Here's a modified version of the filtering example:
Changing filters on the City column, it should now just show the value selector, and you can add and remove cities and everything appears to work. However, on removing the last item from the list, the filter doesn't apply.
On my main project, it does fire the filter event, and it seems to correctly have an empty array for the values, but for some reason the results don't change. I'm using state persistence in my main project, and on reloading the state, it does filter correctly.
Does this a bug, or a flaw in my approach to locking to a single filter?