Action modal in livewire component not working
I am having an issue displaying a modal in a livewire component using a Filament Action
I have followed the docs from:
https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component
This is how it looks like:
The component:
The button shows, on click it loads, but no modal appears
When I apply this same action in a Filament page it works and shows correctly, I am unsure to why this is...
Solution:Jump to solution
Action::make(‘addReading’). The action name needs to match the method name.
5 Replies
Solution
Action::make(‘addReading’). The action name needs to match the method name.
That actually works.. thank you very much
Why this doesnt work on my end though? @awcodes
I am displaying this component on a filament form btw
The reason i am using a component instead of an action on the form is because i want it to be updated on the go thus the wire:poll attribute
You don’t need the if visible in your blade view. It will show hide itself based on the visible callback automatically.
But what exactly isn’t working?
modal won't open
backdrop is not visible either
I click the button, it loads for a a bit but the modal won't open