reactjs / reactjs/react-tabs

Open selected Tab on load and change tab thereafter `onSelect`

Open
#261 5 comments 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

Hi,

I want to open a default tab when a page loads and then I want to change the tab using onSelect however I cannot do this as onSelect will not work on uncontrolled mode.

Have you any suggestions on how to work around this?

Thanks in advance!!

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

Review the react-tabs component's uncontrolled mode and the onSelect behavior described in the issue. Determine whether the requested initial tab selection and subsequent onSelect handling require a defined API change; done should provide a clear supported approach or resolved behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.