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

[Bug Report] van-dropdown-menu incorrect offset of van-dropdown-item when places inside van-popup #10661

Closed
Looooooka opened this issue Jun 3, 2022 · 1 comment · Fixed by #12251
Labels

Comments

@Looooooka
Copy link

Looooooka commented Jun 3, 2022

Reproduction Link

https://codesandbox.io/s/vant-3-issue-template-forked-hhgzej?file=/src/App.vue

Vant Version

3.4.9

Describe the Bug

After trying to use the van-dropdown-menu(used the sample code in the documentation) inside a van-popup I can see the offset property of the drop down items is incorrect. it's getting it from the menubar's bottom position but it's way off (by like 600px vertically). If used outside the van-popup it display's under the menu as expected.

Reproduce Steps

drop van-dropdown-menu sample code from the documentation inside a van-popup

Device / Browser

Desktop (dev,beta,production version of edge as well as latest version of chrome)

@goo-yyh
Copy link
Contributor

goo-yyh commented Jun 9, 2022

看起来像是popup使用transform居中,导致内部的fixed基于popup偏移了

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