ant-design/ant-design

DirectoryTree does not forward defaultExpandParent

クローズ

#34,991 opened on 2022/04/12

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (54,612 件のフォーク)batch import
Inactivehelp wanted🐛 Bug

Repository metrics

Stars
 (98,031 個のスター)
PR merge metrics
 (平均マージ 3d 4h) (30d で 248 merged PRs)

説明

Reproduction link

Edit on CodeSandbox

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

コントリビューターガイド