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

在iPhone12下,切换tabs(tabs吸顶),tab的激活状态不变 #6832

Open
kellen-ming opened this issue Feb 24, 2025 · 4 comments
Open
Labels

Comments

@kellen-ming
Copy link

Version of antd-mobile

IOS12

Operating system and its version

iOS

Browser and its version

No response

Sandbox to reproduce

https://mobile.ant.design/~demos/tabs-demo4/

What happened?

Image

Relevant log output

@kellen-ming kellen-ming changed the title 在ios12下,切换tabs(tabs吸顶),tab的激活状态不变 在iPhone12下,切换tabs(tabs吸顶),tab的激活状态不变 Feb 25, 2025
@kellen-ming
Copy link
Author

版本打错了,应该是:v5.38.1

@Layouwen
Copy link
Member

Version of antd-mobile

IOS12

Operating system and its version

iOS

Browser and its version

No response

Sandbox to reproduce

https://mobile.ant.design/~demos/tabs-demo4/

What happened?

Image

Relevant log output

我这边似乎复现不了

Image

Image

Image

@kellen-ming
Copy link
Author

Version of antd-mobile

IOS12

Operating system and its version

iOS

Browser and its version

No response

Sandbox to reproduce

https://mobile.ant.design/~demos/tabs-demo4/

What happened?

Image

Relevant log output

我这边似乎复现不了

Image

Image

Image

我使用的是window 11 系统,Chrome版本是133.0.6943.142。

Image

@day-xue
Copy link
Contributor

day-xue commented Mar 14, 2025

这个应该是demo的错误

Image

rect.top > tabHeight 的时候就会break掉这个循环
再点击第三页的时候 第三页标题的top 已经大于tabHeight了 所以没setActiveKey

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

No branches or pull requests

3 participants