F
Filament12mo ago
Samir

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:
You don’t need the modal blade component in your view. Just output the action as you are and include <x-filament-actions::modals />...
Jump to solution
5 Replies
awcodes
awcodes12mo ago
Action::make('createLead')->label('Create Lead Now')
Samir
SamirOP12mo ago
Thanks for pointing this. But my code is still not working.
Solution
awcodes
awcodes12mo ago
You don’t need the modal blade component in your view. Just output the action as you are and include <x-filament-actions::modals />
Samir
SamirOP12mo ago
thanks a lot @awcodes . this solved my problem.
Want results from more Discord servers?
Add your server