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

Tabs2 NPEs if passed null amongst children. #838

Closed
AndyMoreland opened this issue Mar 14, 2017 · 2 comments
Closed

Tabs2 NPEs if passed null amongst children. #838

AndyMoreland opened this issue Mar 14, 2017 · 2 comments

Comments

@AndyMoreland
Copy link

AndyMoreland commented Mar 14, 2017

Goal: conditionally render a tab.

Bug report

  • Package version(s): 1.11.1

Steps to reproduce

<Tabs2>
{ null }
</Tabs2>

Actual behavior

Exception

Uncaught TypeError: Cannot read property 'type' of null
    at isTab

Expected behavior

Don't render the tab.

@giladgray
Copy link
Contributor

😱 and i'll bet undefined doesn't work either from looking at the code

@AndyMoreland
Copy link
Author

yeah most likely! :-)

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

No branches or pull requests

3 participants