Fixed oversight of Everything causing a dismiss.

This commit is contained in:
flash 2024-04-21 19:42:36 +00:00
parent 72340994da
commit 185a745f26

View file

@ -11,8 +11,10 @@ const MamiMessageBoxContainer = function() {
if(typeof dialog !== 'object' || dialog === null)
throw 'dialog must be a non-null object';
const backgroundClick = () => {
dialog.clickButtonIndex(0);
const backgroundClick = ev => {
ev.stopPropagation();
if(ev.target === container)
dialog.clickButtonIndex(0);
};
try {