Open godismyjudge95 opened 1 month ago
I did some digging into this last week but I didn't have time to work out a fix.
It looks like boolean value is being filtered out before the AJAX request happens to get the filtered results:
We probably need to update the check to allow for boolean values. I'll loop back to this issue this week, if no one beats me to it.
Bug description
I was experimenting adding a filter to be able to filter by a certain status. I wanted to be able to use a simple toggle (instead of using a radio or checkbox). I was able to add the toggle field, but when toggling nothing happens. The clear button on the popup does not clear the state either.
My guess is that the toggle field type does not have the proper events/hooks to work with filters - or the implementation is bugged.
How to reproduce
$pinned
property to truefieldItems()
method add a new field like so:apply()
method:badge()
method to something like:visibleTo()
method to something like:Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response