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

[Bug Report]: MInfiniteScroll组件第一次渲染不触发OnLoad #2176

Open
kx500 opened this issue Sep 29, 2024 · 1 comment
Open

[Bug Report]: MInfiniteScroll组件第一次渲染不触发OnLoad #2176

kx500 opened this issue Sep 29, 2024 · 1 comment

Comments

@kx500
Copy link

kx500 commented Sep 29, 2024

Masa.Blazor version

1.7.4

Describe the bug

MInfiniteScroll组件第一次加载不触发OnLoad,需要滚动后才会触发,
在Parent使用window下,当内容不足以撑满窗口高度时无法滚动,导致OnLoad永远不触发

Expected Behavior

希望MInfiniteScroll增加首次渲染自动执行一次OnLoad

Steps To Reproduce

No response

Reproduction code

No response

.NET version

8.0

What browsers are you seeing the problem on?

No response

Additional context

No response

@capdiem
Copy link
Contributor

capdiem commented Sep 29, 2024

@kx500 第一次加载会触发,只是当你的内容没有超出容器就不会继续加载第二次。你的窗口高度第一次不是固定的吗,如果是固定的,比如移动端手机上,第一次加载10条不行,那改加载20条呢?

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

No branches or pull requests

2 participants