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

tabs设置sticky后,当tab吸顶后再次切换tab不会自动置顶 #12568

Closed
yanbowe opened this issue Jan 16, 2024 · 2 comments
Closed

tabs设置sticky后,当tab吸顶后再次切换tab不会自动置顶 #12568

yanbowe opened this issue Jan 16, 2024 · 2 comments

Comments

@yanbowe
Copy link
Contributor

yanbowe commented Jan 16, 2024

Reproduction Link

https://codesandbox.io/p/devbox/vant-4-issue-template-forked-kswrjp?file=%2Fsrc%2FApp.vue%3A5%2C44

Vant Version

4.8.1

Describe the Bug

NavBar设置fixed和placeholder后,设置tabs为sticky,第一个标签向下滚动至tabs吸顶,切换至第二个tab发现tabs无法吸顶,会隐藏至NavBar下,容易产生误解
image

Reproduce Steps

希望tabs吸顶后,再次切换tab可以保持吸顶(内容足一屏的情况下)

Device / Browser

Chrome

@inottn
Copy link
Collaborator

inottn commented Jan 16, 2024

这个问题可能已经解决了,等 4.8.3 发布后可以再试一下

@yanbowe
Copy link
Contributor Author

yanbowe commented Jan 17, 2024

已看到相关PR

@yanbowe yanbowe closed this as completed Jan 17, 2024
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

2 participants