Alpine component broke filament create button
I made a custom form field component, put some alpine inside and now my create button doesnt work
6 Replies
You going to need to move the script outside of the component. It’s a caveat with livewire. And how the things in script tags can’t react with the dom diff.
how can i do that? im working with packages so in the js folder of my package i created ProductComponent.js with the following:
now what i have to do?
import it in my blade view?
Checkout the assets docs. https://filamentphp.com/docs/3.x/support/assets
did that, same problem create button doesnt respond
bumping this
this is the section you need to follow. https://filamentphp.com/docs/3.x/support/assets#asynchronous-alpinejs-components