Open a Modal when field state changes
Is it possible to open a modal when the field state changes. I need to add something like this to the Toggle field using a Macro.
Has anyone tried something, any trick?
We could dispatch the
open-modal
event but then we also need to register it somewhere and should be able to cancel/proceed the toggle state.
3 Replies
Solution
You can try something like
$livewire->mountFormComponentAction()
or sthThanks, let me try that.
Wow, you are a genius. This worked like a charm.
Thanks..
Awesome!