Skip to content

Table of Contents don't work using Tabs  #5343

Description

@tmuskin

🐛 Bug Report

Description

Some pages are using tabs to organize information using the documentation on tabs from Docusaurus. The table of contents on the side is generated, but when you click on any of the links in the table of contents only the headers which is under the tab that is open works the other links do not work or bring you to the correct tab and section of the page

Have you read the Contributing Guidelines on issues?

Yes.

Steps to reproduce

  1. Create tabs in a doc by following this page
  2. Create headers underneath multiple tabs
  3. Generate the page and try to click on a link from the table of contents that is not a header on the tab that is open.

Expected behavior

The link in the table of contents would take you to the correct tab and section of the page

Actual behavior

The link does not bring you to the correct tab or section of the page.

Your environment

  • Docusaurus version used: V2 beta 4
  • Environment name and version: Chrome 92.0.4515.107

Reproducible demo

View CodeSandbox

  1. Go to the Tab Bug page under tutorial
  2. Make the view so that you can see the table of contents on the side
  3. Try clicking on a tab then a link in the table of contents that is not in that tab

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executionclosed: working as intendedThis issue is intended behavior, there's no need to take any action.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions