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

Tree component - hide file icon when use showLine #23261

Closed
1 task done
larsmogren opened this issue Apr 14, 2020 · 6 comments · Fixed by #25271
Closed
1 task done

Tree component - hide file icon when use showLine #23261

larsmogren opened this issue Apr 14, 2020 · 6 comments · Fixed by #25271

Comments

@larsmogren
Copy link

larsmogren commented Apr 14, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

go to https://codesandbox.io/s/883vo47xp8

What is expected?

File icon should be hidden and replaced with line.

What is actually happening?

File icon is still visible.

Environment Info
antd 4.1.3
React 16.13.1
System Windows 10
Browser Chrome 80.0.3987.163

Got the link to https://codesandbox.io/s/883vo47xp8 from https://ant.design/components/tree/
The example in https://codesandbox.io/s/883vo47xp8 works for antd 3.26.15

@afc163
Copy link
Member

afc163 commented Apr 15, 2020

We should expand showline to showline={{ hideLeafIcon: true }} for convenience. Thx for report.

@abhishekahuja87
Copy link

Any plans to fix this? Thanks

@fireairforce
Copy link
Member

I will fix this.

@fireairforce
Copy link
Member

fireairforce commented Jun 29, 2020

solved at: #25067

afc163 added a commit that referenced this issue Jun 29, 2020
closes #23261

Co-authored-by: zoomdong <1344492820@qq.com>
@abhishekahuja87
Copy link

Hi, I still see this issue; its not fixed I guess

@CezarCobuz
Copy link

CezarCobuz commented Apr 8, 2021

This problem is still present please reopen this issue

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

Successfully merging a pull request may close this issue.

6 participants