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)
|
if(typeof dialog !== 'object' || dialog === null)
|
||||||
throw 'dialog must be a non-null object';
|
throw 'dialog must be a non-null object';
|
||||||
|
|
||||||
const backgroundClick = () => {
|
const backgroundClick = ev => {
|
||||||
dialog.clickButtonIndex(0);
|
ev.stopPropagation();
|
||||||
|
if(ev.target === container)
|
||||||
|
dialog.clickButtonIndex(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue