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

Card component doesn't display loading block when it doesn't have children #9258

Closed
ReedSun opened this issue Feb 5, 2018 · 0 comments
Closed
Assignees

Comments

@ReedSun
Copy link
Contributor

ReedSun commented Feb 5, 2018

Version

3.2.0

Environment

OS: Window 10, Brower: Google Chrome 63.0.3239.132,

Reproduction link

https://codesandbox.io/s/vynlqq63wl

Steps to reproduce

Use Card Component, set prop loading=true and don't set children.

What is expected?

Display loading block.

What is actually happening?

The loading block is not displayed.


{children ? body : null}

I think maybe this line of code leads to this phenomenon.

I don't kown this phenomenon is a bug or is a feature, so I create this issue. If it's not a bug, it will be fine to close this issue.

^_^

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

No branches or pull requests

4 participants