mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +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,10 +24,10 @@ function MessageBox(title, body, buttons, callbacks) {
|
|||
};
|
||||
|
||||
Reflect.apply(callbacks[callback], {
|
||||
closeDialog: __closeDialog()
|
||||
closeDialog: () => __closeDialog()
|
||||
}, [e]);
|
||||
|
||||
__closeDialog();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue