idux icon indicating copy to clipboard operation
idux copied to clipboard

[comp:Popover ] 如果父节点在Popover之前消失,popover会到页面左上角

Open CocaColf opened this issue 2 years ago • 2 comments

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

复现代码

Steps to reproduce

  1. 点击「打开/关闭菜单」
  2. 点击「这是一个菜单选项」
  3. 选择弹出的内容中的一项

What is expected?

popover 正常消失

What is actually happening?

popover 飘到了左上角

Any additional comments? (optional)

本地使用 1.5.4 版本,之前使用稍旧版本时正常

CocaColf avatar Apr 21 '23 08:04 CocaColf

这里应该使用 v-if 而不是 v-show,因为是先处理的 visible 再进行的 dom 更新,所以在 visible 为 false 的时候,teleport 的内容还没有被移除

kovsu avatar Apr 22 '23 05:04 kovsu

v 1.6.1 应该修复了,你再试一下呢?

danranVm avatar May 30 '23 12:05 danranVm