Component not found on select with native(false) and searchable()
Hi all !
I have a wizard form for my resource (create and edit) but I have a small problem on a specific Select field once the native and/or searchable is activated.
Livewire Entangle Error: Livewire property ['data.products.xxx.content.key_brand'] cannot be found on component: ['app.filament.resources.request-resource.pages.create-request']
I'm not sure why, but it ONLY does it for me on this field. I have other selects in my form with native(false) and searchable() that don't have this problem. If I leave one of the 2 methods, I get the error. If I remove the 2 methods: no error.
Here the field (content.key_brand) :
On the CreateRequest.php, I've this method :
My CreateRequest.php implements the HasWizard trait.
Do you know where the problem might be coming from?
Don't hesitate if you need any further information 😇4 Replies
Hey @Alexandre, did you get this solved?
I'm having the exact same issue, and I found out that is only due to
native(false)
, because searchable()
makes the input automatically non-nativeUnfortunately not 😥
I've removed
native()
and searchable()
but no solutions yet. I can't understand why it's only on this field that the problem occurs.I think it's related to this issue: https://github.com/filamentphp/filament/issues/11289
GitHub
searchable() conflict with disable() on Select component · Issue #1...
Package filament/forms Package Version v3.2.25 Laravel Version v10.43 Livewire Version v3.4.4 PHP Version PHP 8.1 Problem description ->seachable() function cause the issue. I need to enable/dis...
One workaround for issue #11289 is to handle disabled of the select with CSS instead of filament
disable()
I added these 2 entries to my theme.css
Then instead of disabled, i used extraAttributes()