reactjs / reactjs/react-tabs

<a name="" anchors do not work in other tabs

Open
#315 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
3.1k
Forks
455
Avg merge
5h 9m
Merged PRs (30d)
2

Description

react-tabs: 3.1.0

`
<a href="#tab1>tab1
<a href="#tab2>tab2

1 2 `

actual:
tab1 & tab2 will not work.
If defaultIndex={0} , tab1 will work to scroll to the view of content

expected:
tab2 should support anchor tags

Contributor guide

No contributing guide indexed for this repository

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

Start by reproducing the provided react-tabs 3.1.0 example with defaultIndex={1}, two Tabs, and named anchors in the TabPanels. Trace the tab and anchor-navigation entry points; done means the tab2 anchor scrolls to its content even when tab 2 is not initially selected.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.