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

选中回调中,直接调用[categoryView selectItemAtIndex:3]导致下滑线对应不上 #514

Closed
lzqok opened this issue Jul 2, 2024 · 1 comment

Comments

@lzqok
Copy link

lzqok commented Jul 2, 2024

bug描述
在选中回调didSelectedItemAtIndex 方法中直接调用[categoryView selectItemAtIndex:3];选中下滑线对应不上选中item,通过源码分析在JXCategoryIndicatorView中先调用了父类选中方法。
IMG_4418

业务描述
某个选项需要登录才能展示,如果当前没有登录,选中需要回退到上一个选中项目

版本号
1.JXCategoryView版本号: 1.6.3
2.手机系统版本号:
3.手机型号:

复现步骤

  1. 遇到问题的相关效果、类是:JXCategoryIndicatorView,JXCategoryBaseView
    2.具体的操作步骤是:选中回调中调用[categoryView selectItemAtIndex:3]
@pujiaxin33
Copy link
Owner

建议加上一个延迟再调用[categoryView selectItemAtIndex:3]

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

No branches or pull requests

2 participants