Fix MessageBox bug which caused dialog to close on button press without invoking handler

This commit is contained in:
Alma Armas 2020-07-17 16:25:55 +00:00
parent e4787750fa
commit fafc3b4fb9

View file

@ -24,7 +24,7 @@ function MessageBox(title, body, buttons, callbacks) {
};
Reflect.apply(callbacks[callback], {
closeDialog: __closeDialog()
closeDialog: () => __closeDialog()
}, [e]);
__closeDialog();