ElemeFE / ElemeFE/mint-ui

[Bug Report] 点击阴影部分关闭 MessageBox.confirm() 时,不会触发任意流程

Open
#1,340 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
16.4k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

### Mint UI version
2.2.13

### OS/Browsers version
Mac OS 10.13.3 / Chrome 59.0.3071.115

### Vue version
2.5.2

### Reproduction Link
[https://github.com/xyy94813/Mint-UI-Issuse-Demo](https://github.com/xyy94813/Mint-UI-Issuse-Demo)

### Steps to reproduce
点击按钮触发 MessageBox.comfirm()
点击阴影部分关闭 MessageBox.comfrim
使用 console.log() 输出 MessageBox.comfirm() 返回的 Promise

### What is Expected?
MessageBox.comfirm() 返回的 Promise 进入到 rejected 状态,点击阴影部分关闭按钮,等同于点击取消按钮

(PS: 重现链接能否支持 sanbox 的项目,https://xl9r9qjz8q.codesandbox.io 这类型的 URL 一直校验不过?)

### What is actually happening?
MessageBox.comfirm() 返回的 Promise 仍处于 pending 状态,无法处理点击阴影部分导致 MessageBox 关闭的情况。

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.