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

popover的reference使用floating-bubble 组件时,popover 弹框的位置不正确 #12788

Open
yionr opened this issue Apr 13, 2024 · 0 comments

Comments

@yionr
Copy link

yionr commented Apr 13, 2024

重现链接

https://codesandbox.io/p/devbox/vant-popover-bug-with-teleport-gfwycf?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522cluxi90j900083j6gnf9mgre5%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522cluxi90j900033j6gc23y5ukq%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522cluxi90j900053j6ghg61imdn%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522cluxi90j900073j6gqpk8uy91%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B64.14372655%252C35.85627345%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522cluxi90j900033j6gc23y5ukq%2522%253A%257B%2522id%2522%253A%2522cluxi90j900033j6gc23y5ukq%2522%252C%2522tabs%2522%253A%255B%255D%257D%252C%2522cluxi90j900073j6gqpk8uy91%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cluxi90j900063j6gfgl3fmzb%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522pnpm%2520run%2520dev%2522%252C%2522port%2522%253A5173%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522cluxi90j900073j6gqpk8uy91%2522%252C%2522activeTabId%2522%253A%2522cluxi90j900063j6gfgl3fmzb%2522%257D%252C%2522cluxi90j900053j6ghg61imdn%2522%253A%257B%2522id%2522%253A%2522cluxi90j900053j6ghg61imdn%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cluxi90j900043j6g14oscw8d%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522pnpm%2520run%2520dev%2522%257D%252C%257B%2522id%2522%253A%2522cluxib8ny00go3j6geq41yn2x%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TERMINAL%2522%252C%2522shellId%2522%253A%2522cluxib9b3004sdhhubwgb20vl%2522%257D%255D%252C%2522activeTabId%2522%253A%2522cluxi90j900043j6g14oscw8d%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

Vant 版本

4.8.10

描述一下你遇到的问题。

popover的reference使用floating-bubble 组件时,popover 弹框的位置不正确

重现步骤

  1. 点击右下角floating-bubble
  2. 能观察到popover弹出的位置并不符合floating-bubble的位置

设备/浏览器

No response

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

1 participant