Fixed oversight of Everything causing a dismiss.
This commit is contained in:
parent
72340994da
commit
185a745f26
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue