-
Notifications
You must be signed in to change notification settings - Fork 373
Multiple v-show controlled InfiniteLoading not working since v2.4.1 #204
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
Comments
你提供的两个重现链接效果是一模一样的,如果步骤只需要切换标签的话。事实上,这正是『期望中的结果』,因为目前没有一个高效且兼容性良好的方案来监听元素是否可见,所以 InfiniteLoading 自然也无法在自身从不可见变为可见时触发一次加载。 对于此类场景,大概有两种解决方案:
|
多谢解答,第一种方案很简洁有效。 |
@shixy96 不客气。我根据你的步骤在本地再次确认了一下你所描述的问题,发现确实存在,这应该是 v2.4.0 => v2.4.1 改造节流器时出现的 Bug,我会尽快进行修复,感谢反馈! |
Version
2.4.0
Vue.js version
2.2.1
Reproduction Link
can not work after 2.4.0: https://jsfiddle.net/shixy007/ye04kja3/22/
work in 2.3.5: https://jsfiddle.net/shixy007/ye04kja3/20/
Steps to reproduce
切换标签
What is Expected?
What is actually happening?
在 2.3 版本中,v-show 下使用 InfiniteLoading ,可以正常加载;
在 2.4.0 之后的版本中, v-show 下使用 InfiniteLoading , 切换之后不能正常加载。
The text was updated successfully, but these errors were encountered: