call `doClose()` in the exposed `close` method

pull/8353/merge
Daniel Chiang 2017-11-06 14:28:12 +08:00 committed by 杨奕
parent f307f7f428
commit abd2d7de36
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@ MessageBox.prompt = (message, title, options) => {
};
MessageBox.close = () => {
instance.doClose();
instance.visible = false;
msgQueue = [];
currentMsg = null;