We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
直接用官网例子滚的快停时点确认就看见了,比如先在选项5上,转到快到1停止的时候按确认,toast提示选项5,第二次打开时默认值是选项1
我大概看了下,是因为wheel的滚动停止事件触发的比较晚onchange,这个时候先确认,wheel也没卸载,那么拿的就是滚动前的数据,然后滚动事件晚触发,下次点击打开就是最终想选的那个值。
有几种解决方法: 1、直接暴力解决,点确认的时候把当时的值拿到立即卸载wheel,不管他滚动事件结束没有。下次打开时再重新加载wheel。 2、在wheel处加个滚动状态,处于滚动状态中点确认需要等待滚动停止再确认。
The text was updated successfully, but these errors were encountered:
或者把value值对上wheel的选中应该也可以,看了下zarm2好像没这问题
Sorry, something went wrong.
dominicleo
No branches or pull requests
Steps to Reproduce
直接用官网例子滚的快停时点确认就看见了,比如先在选项5上,转到快到1停止的时候按确认,toast提示选项5,第二次打开时默认值是选项1
Solution
我大概看了下,是因为wheel的滚动停止事件触发的比较晚onchange,这个时候先确认,wheel也没卸载,那么拿的就是滚动前的数据,然后滚动事件晚触发,下次点击打开就是最终想选的那个值。
有几种解决方法:
1、直接暴力解决,点确认的时候把当时的值拿到立即卸载wheel,不管他滚动事件结束没有。下次打开时再重新加载wheel。
2、在wheel处加个滚动状态,处于滚动状态中点确认需要等待滚动停止再确认。
Environment
The text was updated successfully, but these errors were encountered: