DropdownMenu嵌套在 Tabs 等组件内部使用时下拉菜单位置错误 #12558
Unanswered
youpeng-863
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
如图所示使用的vant版本为4.8.2,按照官网描述分别在DropdownItem和DropdownMenu设置了teleport="body"和auto-locate,每次进入系统时显示是正常的,如下图所示:
但是如果跳转到下一个路由再使用history.back()返回(返回后的页面重新加载数据),那么下拉菜单的位置就会错乱,如下图所示
ps:如果仅仅从上一个路由进入的时候并不会发生这样的问题
Beta Was this translation helpful? Give feedback.
All reactions