Clicking widget action does nothing

I've followed the docs for adding a custom action to a widget, but when I add ->form() or ->action() to the Action component, nothing happens when I click it. I do see a livewire update network event but no errors in browser console.
No description
No description
Solution:
The function name and action name need to be the same. Ie modalAction, make::(‘modalAction’)
Jump to solution
5 Replies
Niels
NielsOP3d ago
No description
toeknee
toeknee3d ago
Remove the ::modals/> call, I don't think is needed because one already exists in the admin panel.
Niels
NielsOP3d ago
Thank you, but this doesn't seem to fix it. Is there something from Livewire I can run in the browser console that would give me feedback?
Solution
awcodes
awcodes3d ago
The function name and action name need to be the same. Ie modalAction, make::(‘modalAction’)
Niels
NielsOP3d ago
That's it, thank you 🫶

Did you find this page helpful?