Action inside modal is not working
Hi
I have action that open a modal with custom view. On that view I have another action but when I click on that action nothing happens:
And this is my
I am setting record on my $removePaymentAction button inside foreach loop. When I click on that button, spinner show and then disappear and nothing happens. The record doesn't get deleted. Confirmation dialog also is not triggering. Can someone help?
I have action that open a modal with custom view. On that view I have another action but when I click on that action nothing happens:
And this is my
/resources/filament/modals/payments-list.blade.php file:I am setting record on my $removePaymentAction button inside foreach loop. When I click on that button, spinner show and then disappear and nothing happens. The record doesn't get deleted. Confirmation dialog also is not triggering. Can someone help?
Solution
Just to post an update how I solved this problem. The problem was my misuse of Filament actions.
I've created new Livewire component in which created filament table, just like the documentation says. I've passed my invoice record to the livewire via property.
And in the modal content view I called the livewire component like this:
And finally Action that opens that modal:
I've created new Livewire component in which created filament table, just like the documentation says. I've passed my invoice record to the livewire via property.
And in the modal content view I called the livewire component like this:
And finally Action that opens that modal:
