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

Small issue: no children --> exception #6

Closed
rogierschouten opened this issue Nov 3, 2014 · 1 comment
Closed

Small issue: no children --> exception #6

rogierschouten opened this issue Nov 3, 2014 · 1 comment

Comments

@rogierschouten
Copy link

Hi,
Very small issue here: when there are (presumably temporarily) no child elements for the tabs elements, then the page doesn't load due to the following code:

                // Setup tab/panel ids
        React.Children.forEach(this.props.children[0].props.children, function () {
            tabIds.push(uuid());
            panelIds.push(uuid());
        });
Uncaught TypeError: Cannot read property 'children' of undefined 
@rogierschouten
Copy link
Author

Oh, the cause is slightly more involved. Copypasting the example code, there are javascript comments between the elements. JSX does not handle comments between elements, resulting in elements without children. So you may want to adjust README.md as well perhaps.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant