-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
[v2] Tabs fail to render when they have only one child #3822
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Comments
aeneasr
added
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Nov 26, 2020
aeneasr
added a commit
to aeneasr/Docusaurus
that referenced
this issue
Nov 26, 2020
slorber
added a commit
that referenced
this issue
Nov 26, 2020
* fix(v2): support rendering of singular tabs Closes #3822 * Update index.tsx * fix type Co-authored-by: slorber <lorber.sebastien@gmail.com>
Josh-Cena
removed
the
status: needs triage
This issue has not been triaged by maintainers
label
Mar 10, 2022
I'm seeing evidence that this has resurfaced with the 2.3 release. We had one page with a single tab in the tabset and it was causing the |
Let's track the new error in #8591 |
timfeirg
added a commit
to juicedata/juicefs
that referenced
this issue
Feb 2, 2023
timfeirg
added a commit
to juicedata/juicefs
that referenced
this issue
Feb 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
(A clear and concise description of what the bug is)
Have you read the Contributing Guidelines on issues?
yes
To Reproduce
In a mdx file, write:
Expected behavior
This will fail to render with
index.js?3e4b:6 Uncaught (in promise) TypeError: children.map is not a function
caused by 8c9f948 and more specifically the removal of 8c9f948#diff-5548122e1da708235c90f8d8cc552ffa69c199f1dd82ca505c9577ac7255da73L114Adding a non-sense tab like so will fix this:
Actual Behavior
Rendering should not fail
Your Environment
Reproducible Demo
(Paste the link to an example repo, including a
siteConfig.js
, and exact instructions to reproduce the issue.)The text was updated successfully, but these errors were encountered: