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