So I opened the AI to abuse it. I noticed there is a Share button, I clicked on it, I found nothing interesting, so I clicked the close button.
Interestingly nothing happens, the dialog doesn't close.
I would expect that the X in the red circle would close that dialog.
Ps. I'm using Firefox 145.0.2 (64-bit) (it says up to date).

addEventListener('click', closeOnClick )binding exists: essentially all DOM elements all have the exact same set of Event Listeners registered: the real close-button-click dispatch happens somewhere in the megabytes of minified Blazor JS - that won't be easy to investigate.