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

useVirtualList 这个 hooks 官网示例会无限重新加载 dom #2033

Closed
Ali-ovo opened this issue Jan 18, 2023 · 3 comments · Fixed by #2034
Closed

useVirtualList 这个 hooks 官网示例会无限重新加载 dom #2033

Ali-ovo opened this issue Jan 18, 2023 · 3 comments · Fixed by #2034

Comments

@Ali-ovo
Copy link
Contributor

Ali-ovo commented Jan 18, 2023

复现方法

打开 hooks 示例 https://ahooks.gitee.io/zh-CN/hooks/use-virtual-list
然后滚动一下页面,会发现dom元素会无限刷新导致页面无法正常展示

看了一下 大概是height变成了科学计数法的原因,下面有截图

image

@Sunny-117
Copy link

bug无疑了

@Ali-ovo
Copy link
Contributor Author

Ali-ovo commented Jan 18, 2023

bug无疑了

应该计算高度的时候出了问题

@hchlq
Copy link
Collaborator

hchlq commented Feb 22, 2023

重复问题,统一在 #2049 处理

@hchlq hchlq closed this as completed Feb 22, 2023
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

Successfully merging a pull request may close this issue.

3 participants