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
想问一下,useInfiniteScroll所使用的getClientHeight这个方法是不是有点问题?这边想获取视窗的高度,应该是使用el.clientHeight || document.documentElement.clientHeight || document.body.clientHeight吧? 经测试,在chrome上document.body.clientHeight会返回body的高度,导致当useInfiniteScroll传入的target为document时,会在未滚动触底的情况下自动触发handler
The text was updated successfully, but these errors were encountered:
如何修复这个问题呢?
Sorry, something went wrong.
参考下这里:#1516 (comment)
如果限定了body的高度,那么失去了以document为滚动父元素的意义,我使用了该方式:#1563
统一在 #2119 中处理
brickspert
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: