SelectFilter Search and Non Matching Results

Ive verified this with a few different SelectFilters that are searchable() and ive noticed that if a type something in that i know has a match, it shows up at the top, but if I type in lets say someones name that I know is not in the user filter, i still have a list of users that in no way match that name. As I type, the list can get smaller, but still, none of them matched, so it should be empty shouldnt it once nothing matches? Not clear from the image, but i had typed in fppfppbarsdf
SelectFilter::make('user_id')
->label('User')
->options(User::active()->pluck('name', 'id'))
->searchable()
SelectFilter::make('user_id')
->label('User')
->options(User::active()->pluck('name', 'id'))
->searchable()
No description
1 Reply
Kenneth Sese
Kenneth Sese3w ago
@Mark Chaney Seems like a common complaint with choices.js because it uses fuse for fuzzy searching. There’s a solution, but you’d need to make a PR to filament’s select to allow this functionality to be configured. https://github.com/Choices-js/Choices/issues/895
GitHub
Results contain unexpected results · Issue #895 · Choices-js/Choices
Describe the bug When I start writing what I need to search, I got also results which not contains what I typed. It happens also in the demo To Reproduce Steps to reproduce the behavior: Go to demo...

Did you find this page helpful?