searchable() in Select blocks listing items

If I Add ->searchable() option the items are no more listing. I used also the basic example from the documentation. I tried with getSearchResultsUsing(...) without luck. I have no error message in console. If I delete searchable() everything works as expected. Everything is updated. This is the code:
Select::make('status')
->searchable()
->options([
'In Process' => [
'draft' => 'Draft',
'reviewing' => 'Reviewing',
],
'Reviewed' => [
'published' => 'Published',
'rejected' => 'Rejected',
],
]),
Select::make('status')
->searchable()
->options([
'In Process' => [
'draft' => 'Draft',
'reviewing' => 'Reviewing',
],
'Reviewed' => [
'published' => 'Published',
'rejected' => 'Rejected',
],
]),
2 Replies
phphelloworld
phphelloworldOP12mo ago
Is there someone can help me and give me a direction where to investigate? Thanks in advance
einnlleinhatt_
einnlleinhatt_12mo ago
If you search it, does it show up? I think with searchable you need to type it first then it will show the option. You can add preload() tho.
Want results from more Discord servers?
Add your server