Open azizabbas opened 15 hours ago
Hi you can use wire:click and call your relevant livewire method when the close button is clicked
Hi, Thanks for your reply on this one.
Actually, I am asking about that little cross icon on top-right corner of the box.
Seems like we don't have any control on that icon.
Caleb mentioned that he uses <dialog>
for modals. If you can acquire a reference to it, you can add a listener as described in https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#examples
Are you saying that we have to go back to javascript to capture this is one tiny thing. Well, this is bit annoying
@azizabbas you could register an on click the data-flux-modal-close
attribute too. It doesn't get much easier than that. And you can always override the the flux:modal.close
to emit a JS event if it's more common.
This isn't a bug though, it's better to post these things in discussions.
Hi,
I was wondering if I can capture Modal close event.
For example, if I am using a Delete confirmation Modal. How I can capture click on little close icon on top right of the Modal?
Thanks for your help and support so far.
Aziz Abbas