ElemeFE / ElemeFE/element

[Bug Report] MessageBox only shows the last one when calling it multi times synchronously

Open
#19,802 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.13.2

### OS/Browsers version
all

### Vue version
2.6.11

### Reproduction Link
https://codepen.io/pen/

### Steps to reproduce
1. click "show msg" button
2. click "show 2 msgs" button
3. click "show 2 msgs async" button

### What is Expected?
1. 1 MessageBox appears
2. 2 MessageBox appear in the function's calling order
3. 2 MessageBox appear in the function's calling order

### What is actually happening?
1. 1 MessageBox appears
2. only the last MessageBox appears
3. 2 MessageBox appear in the function's calling order

As the reproducting codepen shows, when calling `this.$msgbox` multi time synchronously by clicking "show 2 msgs" button, it only shows the last one.
While when calling it synchronously with `setTimeout`, all the MessageBox will show in order.

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.