mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Fix MessageBox bug which caused dialog to close on button press without invoking handler
This commit is contained in:
parent
e4787750fa
commit
fafc3b4fb9
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ function MessageBox(title, body, buttons, callbacks) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Reflect.apply(callbacks[callback], {
|
Reflect.apply(callbacks[callback], {
|
||||||
closeDialog: __closeDialog()
|
closeDialog: () => __closeDialog()
|
||||||
}, [e]);
|
}, [e]);
|
||||||
|
|
||||||
__closeDialog();
|
__closeDialog();
|
||||||
|
|
Loading…
Reference in a new issue