© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
12 replies
gladjanus43

Select in custom livewire component with searchable removes wire.model

HI, I have a very weird issue. I have a custom livewire form in a modal. Everything is working really well except when I add the searchable to the select

Select::make('company_id')
->relationship('company', 'name')
->searchable()
->required(),
Select::make('company_id')
->relationship('company', 'name')
->searchable()
->required(),


Which results in html generated like this:
<select x-ref="input" class="h-9 w-full rounded-lg border-none bg-transparent !bg-none choices__input" id="data.company_id" hidden="" tabindex="-1" data-choice="active"></select>

However when I remove the searchable method it does add the wire.model to the select input.
<select class .... wire:model="data.company_id">

When the searchable is removed everything works as you would expect, and loading the value from the database into the form. With the searchable it of course stays empty and gives the error
Livewire Entangle Error: Livewire property ['data.company_id'] cannot be found on component: ['app.filament.pages.planning']

Anybody has seen this before? Or is there something i am missing? Help would be appreciated!
Solution
Thanks anyway, reduced this to this
public function editAction(): Action
{
return Action::make('Edit')
->requiresConfirmation()
->action(function (array $arguments) {
dd($arguments);
// $post = Post::find($arguments['post']);
});
}
🤣
Screenshot_2024-07-11_at_14.41.30.png
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Select component with searchable & live?
FilamentFFilament / ❓┊help
3y ago
Searchable Table in a Livewire Component
FilamentFFilament / ❓┊help
2y ago
Default value with searchable in select component
FilamentFFilament / ❓┊help
3y ago
Select Blade Component - Searchable
FilamentFFilament / ❓┊help
2y ago