Reproduction link
Steps to reproduce
Open the page and see that it does not use defaultExpandParent
and defaults to true
instead false
.
What is expected?
defaultExpandParent is forwarded. See https://github.com/ant-design/ant-design/blob/master/components/tree/DirectoryTree.tsx#L216.
What is actually happening?
defaultExpandParent is not forwarded.
Environment | Info |
---|---|
antd | 4.19.5 |
React | 17.0.2 |
System | MacOs |
Browser | Chrome |
3条答案
按热度按时间gopyfrb31#
You may look for issues:
normalize
does not work correctly with InputNumber #34162🤖 By issues-similarity-analysis
50few1ms2#
Didn't find anything went wrong in your reproduction, could you provide more description?
dpiehjr43#
I seem to have forgotten to save the sandbox. It should be up to date now. You should see two identical trees where the only difference is that one is a
Tree
and the other aDirectoryTree
. The trees contain a deeply nested expanded node, but I would expect both to not expand its parents.Let me know if you need more details.