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

Stack render false child #2731

Closed
MarvelSQ opened this issue Sep 19, 2022 · 0 comments · Fixed by #2732
Closed

Stack render false child #2731

MarvelSQ opened this issue Sep 19, 2022 · 0 comments · Fixed by #2732
Assignees

Comments

@MarvelSQ
Copy link
Member

MarvelSQ commented Sep 19, 2022

What version of rsuite are you using?

5.18

What version of React are you using?

17.0.2

What version of TypeScript are you using (if any)?

4.x

What browser are you using?

Chrome

Describe the Bug

<Stack>
  normal children
  {false expression}
  normal children  
</Stack>

in dom, the false expression is rendered as a regular Item that takes the same space. with spacing or divider props being set, there is a bigger gap in between

Expected Behavior

the false expression won't be rendered in dom

To Reproduce

https://codesandbox.io/s/falling-mountain-h7xmzz?file=/src/index.js

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.

1 participant