react-component / react-component/tree
节点第三次点击展开时遇到问题
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 490
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 5
Description
同一个节点点击展开再点击关闭,第三次点击展开时会失败;我估计是因为css样式添加的时机不对。


子节点其实渲染出来了,但是子节点的外层容器,添加了使容器高度为0的class,导致子节点看不到,使人认为展开失败了。
十分希望能发一版修复这个问题,十分感谢🙏
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the tree component: expand a node, collapse it, then expand it again. Inspect the rendered child nodes and their outer container class after the third click; done means the children remain visible when the node is expanded.
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