I have a simple Livewire Component:
class UserIcon extends Component implements HasForms, HasActions
{
use InteractsWithActions;
use InteractsWithForms;
public function userMenuOrLogin(): Action
{
return Action::make('login')
->action(function (array $arguments) {
dd('Test action called', $arguments);
});
}
public function render(): View
{
return view('livewire.user-icon');
}
}
and thats the view:
<div>
{{ $this->userMenuOrLogin }}
<x-filament-actions::modals />
</div>
When I click on the button, I can see the update request on the network tab of chrome, but nothing happens, no DD output is shown. Any ideas?