GitbookIO / GitbookIO/gitbook

Specifying tabs to be rendered in the react embed has no effect

Open
#3,959 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug triage
Dominant language
TypeScript
Stars
29k
Forks
4k
Avg merge
1d 2h
Merged PRs (30d)
71

Description

Bug description

When using the gitbook react embed and setting the Tabs configuration ( "assistant" and/or "docs")
both are rendered regardless if only one is specified.

How to reproduce

1.Set Tabs to either "assistant" or "docs"
2. Both are rendered in the iframe

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating the React embed entry point and its Tabs configuration, then reproduce the iframe behavior with only "assistant" or only "docs" selected; done means the iframe renders only the requested tab.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.