You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for comparison there 2 fields : boolean and string . Both are aggregations and search made under both of them
in first case we have "selected:false" for boolean ( looks like a bug) and "selected:true" for string ( its OK)
Thank you for bringing this issue. After reviewing the issue, I have determined that this is not a bug, but rather an improvement request. At this time, ItemsJS does not support boolean filters, but using strings can serve as a temporary workaround. Please let me know if this workaround is limiting you in any way
Activity
mulquin commentedon Aug 16, 2022
This is happening because of line 370 in helpers.js.
Currently to check if something is selected,
filters.indexOf(v2[0]) !== -1is used.v2[0]is the result of lodashchain().toPairs().map()but it is actually a string, so theindexOfabove fails.cigolpl commentedon Mar 9, 2023
Thank you for bringing this issue. After reviewing the issue, I have determined that this is not a bug, but rather an improvement request. At this time, ItemsJS does not support boolean filters, but using strings can serve as a temporary workaround. Please let me know if this workaround is limiting you in any way
SergeyRe commentedon Mar 10, 2023
Yes. Its actually not big trouble at all.
cigolpl commentedon Nov 22, 2025
@SergeyRe, @mulquin. Done - #149. Thank you for your input.