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

Custom icons are hidden when tree components are loaded asynchronously #23470

Closed
1 task
Codevers opened this issue Apr 22, 2020 · 0 comments · Fixed by #23494
Closed
1 task

Custom icons are hidden when tree components are loaded asynchronously #23470

Codevers opened this issue Apr 22, 2020 · 0 comments · Fixed by #23494

Comments

@Codevers
Copy link

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

When the tree is loaded asynchronously, loading appears and the custom icon disappears

What is expected?

Custom icons should not disappear

What is actually happening?

Custom icon disappears

Environment Info
antd 4.1.1
React 16.12.0
System macOS Mojave v10.14.6
Browser Chrome v80.0.3987.163 64bit

.ant-tree .ant-tree-treenode-loading .ant-tree-iconEle{ display:none }

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.

2 participants