Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiSelect filtering with FilterMatchMode IN #44

Open
garry-mitchell-coats-com opened this issue Mar 14, 2024 · 0 comments
Open

MultiSelect filtering with FilterMatchMode IN #44

garry-mitchell-coats-com opened this issue Mar 14, 2024 · 0 comments

Comments

@garry-mitchell-coats-com
Copy link
Contributor

Hi, I have noticed a small discrepancy in the way that MultiSelects work with Filtering - there appears to be a difference between unchecking all the items, and using the Clear button.

image

I am using an IN filter for this field:

fieldName: {
  value: null,
  matchMode: FilterMatchMode.IN
},

When selecting one or more items, the filter value is an array of items (ie ["A", "B", "C"], and the filter returns the matching items.
When unchecking, this becomes an empty array of items ([]), and the filter returns nothing.
When clicking Clear, this becomes null, and the filter returns everything.

Ideally, the last two cases will return the same result - everything.

I've checked the Prime documentation and demos, and they don't appear (as far as I can find) to do anything else different to what I'm doing here - the only difference I guess is their back-end response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant