Action to a Livewire component not working.
I have created a Livewire component SearchProduct and have added createLeadAction() to same livewire component. But it does not work.
Below is the issue:
-- Clicking on Create Lead action button on each product, opens modal with no form but only action button name "Create Lead Now".
-- When i click on this button, then also nothing happens. In fact, debug shows it never entered body of the code.
Attached the component and blade file code. Please help.
Solution:Jump to solution
You don’t need the modal blade component in your view.
Just output the action as you are and include
<x-filament-actions::modals />
...5 Replies
Action::make('createLead')->label('Create Lead Now')
Thanks for pointing this. But my code is still not working.
Solution
You don’t need the modal blade component in your view.
Just output the action as you are and include
<x-filament-actions::modals />
thanks a lot @awcodes . this solved my problem.