Problem with filter results - Need to refresh #374
Replies: 1 comment
-
Suggest using the filter() callback on your Filter to prevent this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have implemented a filter that match a specific label.
->when($this->getFilter('color'), fn ($query, $color) => $query->where('color', $color))
It works the first time. Then, if I select another color, the results are messed up i.e I have not only this color but others colors labels that are shown. But If I refresh the page, the filter works again.
Also, when there are no results, I have actually the message "No items found. Try narrowing your search.", but I still have some results displayed.
Any ideas why it happens ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions