Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Event system #22

Open
jerivas opened this issue Apr 10, 2020 · 2 comments
Open

Event system #22

jerivas opened this issue Apr 10, 2020 · 2 comments

Comments

@jerivas
Copy link

jerivas commented Apr 10, 2020

Hey! Thanks for this amazing package 馃槉

Is it possible to listen for open/close events on a dialog? I have embedded a video in the dialog but it keeps playing when the dialog is closed.

@jkrk678
Copy link

jkrk678 commented Oct 19, 2022

@jerivas I had the same question. I ended up adding a CustomEvent() to ARIAmodal.closeModal() that is emitted to the body that gives an e.detail with the id of the modal that was closed, so I can do things I need to do with the most recently closed modal.

What did you end up doing?

@jerivas
Copy link
Author

jerivas commented Oct 19, 2022

It's been so long so I don't remember 馃槄 But the custom event rings a bell (and that's what I would do now)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants