Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
CocaColf opened this issue Apr 21, 2023 · 2 comments
Open
1 task done
Assignees

Comments

@CocaColf
Copy link
Contributor

  • 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 版本,之前使用稍旧版本时正常

@kovsu
Copy link
Member

kovsu commented Apr 22, 2023

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

@danranVm
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants