ElemeFE / ElemeFE/element

[bug report] [dialog] after setting the destroy-on-close attribute, if you need to use the pop-up box that depends on Popper internally, the second call will fail

Open
#19,492 2 comments 0 reactions 0 assignees View on GitHub
stale
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
Windows10 / Chrome 82

### Vue version
2.6.11

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

### Steps to reproduce
1,打开弹框,鼠标移入到按钮上,关闭弹框
2,再次打开弹框,鼠标移入到按钮上,会发现弹框的位置并不是预期的

阅读源码时发现`referenceElm`没有得到及时的更新,我怀疑是dialog的key导致的,因为设置`destroy-on-close`属性后,只改变了组件的key

### What is Expected?
在预期的位置显示弹框

### What is actually happening?
未正确的显示弹框

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.