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

[Tabs] Accept null children #8107

Merged
merged 1 commit into from Sep 8, 2017
Merged

[Tabs] Accept null children #8107

merged 1 commit into from Sep 8, 2017

Conversation

oliviertassinari
Copy link
Member

Closes #8093

@oliviertassinari oliviertassinari added the component: tabs This is the name of the generic UI component, not the React module! label Sep 8, 2017
@oliviertassinari oliviertassinari merged commit a8657e6 into mui:v1-beta Sep 8, 2017
@oliviertassinari oliviertassinari added the new feature New feature or request label Sep 8, 2017
@oliviertassinari oliviertassinari deleted the tabs-null branch September 8, 2017 18:52
@bobstoovee
Copy link

bobstoovee commented Sep 16, 2019

This fix does not account for the edge case where the conditional logic is hidden within a component. For example,

image

This component will render "null" but it will be picked up as a valid child since the component is using React.isValidElement() to verify against a null, and this is a valid child.(probably should only count children that are tabs, and ignore other elements which shouldn't be there.

image

@oliviertassinari
Copy link
Member Author

Probably related to #12921.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tabs This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants