Browse Source

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

Daniel Chiang 7 năm trước cách đây
mục cha
commit
abd2d7de36
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      packages/message-box/src/main.js

+ 1 - 0
packages/message-box/src/main.js

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