Select Field search not reloading options after clearing search

I have a select field that I'm searching on. It searches through an array of data. Searching works, but if you search, then backspace to clear the search, only the last search is appearing. I have to then add a space and to get all the options again. (See video) Am I doing something wrong? Thanks!

Select::make('item')
    ->searchable()
    ->preload()
    ->searchDebounce(200)
    ->options(fn () => static::getItems())
    ->getSearchResultsUsing(function (string $search) {
        return static::getItems($search);
    }),


protected static function getItems(string $search = null)
{
    $items = [
        'foo',
        'bar',
    ];

    return collect($items)
        ->filter(function ($item) use ($search) {
            if (blank($search)) {
                return true;
            }
            
            return Str::contains($item, $search);
        })
        ->toArray();
}
Was this page helpful?