Triggering editaction on Stat click
Hi all,
I have been trying to add a click event to trigger a "editAction". The event gets dispatched, but the modal (/slideover) does not show.
When I trigger the action directly, the modal does show.
This is how I am trying to achieve this:
- I have confirmed the function gets called on Click
- I have confirmed the modals code itself is loaded on the page
Thanks for the help!
Solution:Jump to solution
OK, I figured it out:
```
#[On('widget-edit')]
public function widgetEdit(string $id): void
{...
2 Replies
Ah, I have made some progress here. The issue seems to be the action isn't mounted. So fiddling with mounting the action before calling it. Will report back with a full solution if I find one.
Solution
OK, I figured it out:
The click events dispatches this event. Which will trigger the modal to open.