# Alpha Dialog or Popup

**URL:** https://community.neutrinos.com/t/alpha-dialog-or-popup/698
**Category:** Platform Core Features
**Tags:** neutrinos-alpha
**Created:** [May 5, 2025, 8:22am UTC](https://community.neutrinos.com/t/alpha-dialog-or-popup/698 "2025-05-05T08:22:12Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Simphiwe](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@Simphiwe](https://community.neutrinos.com/u/Simphiwe)
#### Post date: [November 7, 2025, 7:27am UTC](https://community.neutrinos.com/t/alpha-dialog-or-popup/698/6 "2025-11-07T07:27:14Z")

</div>

Hi @Edward,

When a page is being used as a dialog, the is no event that is dipatched or exposed for the close icon.  
But you can use the snippet code below which uses **event delegation** — attach the listener to a stable parent (the dialog) and check the click target:

const dialog = this;  
dialog.addEventListener(‘click’, (event) =\> {  
if (event.target.id === ‘xdialog-delete’) {  
console.log(‘Delete SVG clicked via delegation’);  
}  
});

That should work.

---

_[View the full topic](https://community.neutrinos.com/t/alpha-dialog-or-popup/698)._
