react-component / react-component/virtual-list

当下拉框滚动条不处于顶部时,关闭下拉框再展开,火狐在loading和loading结束后显示空白,需要滚动滚动条数据才会显示

Open
#185 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
814
Forks
171
Avg merge
1h 3m
Merged PRs (30d)
3

Description

我在dropdownRender中添加了Spin,dropdownRender={(menu) => {menu}}
展开下拉框后将滚动条向下滚动,关闭下拉框,再展开后,火狐在loading时,以及loading结束后,下拉框内展示空白,需要再次滚动条,数据才会显示。
关闭虚拟滚动后将没有此问题。
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Firefox with virtual scrolling enabled: scroll the dropdown, close it, reopen it, and observe it while loading and after loading ends. The fix is complete when the list displays its data immediately after reopening without requiring another scroll; compare behavior with virtual scrolling disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.