diff --git a/routes/_components/dialog/components/ModalDialog.html b/routes/_components/dialog/components/ModalDialog.html
index 3af45b2f..fb605bdb 100644
--- a/routes/_components/dialog/components/ModalDialog.html
+++ b/routes/_components/dialog/components/ModalDialog.html
@@ -131,8 +131,9 @@
let dialogElement = this.refs.node.parentElement
this._a11yDialog = new A11yDialog(dialogElement)
this._a11yDialog.on('hide', () => {
- this._a11yDialog.destroy()
let { id } = this.get()
+ this.fire('close')
+ this._a11yDialog.destroy()
emit('destroyDialog', id)
requestAnimationFrame(() => document.body.removeChild(dialogElement))
})
diff --git a/routes/_components/dialog/components/VideoDialog.html b/routes/_components/dialog/components/VideoDialog.html
index 2d5ded0c..17b7d1b7 100644
--- a/routes/_components/dialog/components/VideoDialog.html
+++ b/routes/_components/dialog/components/VideoDialog.html
@@ -4,6 +4,7 @@
background="var(--muted-modal-bg)"
muted="true"
className="video-modal-dialog"
+ on:close="onClose()"
>