Getting a ref to TabPanel's component
Open
Nobody has claimed this yet.
bug
- Dominant language
- JavaScript
- Stars
- 3.1k
- Forks
- 455
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 2
Description
Is there any way to get a ref to the component in a TabPanel? Currently they are always returning null.
<Tabs>
...
<TabPanel>
<MyComponent ref={(comp) => { console.log('ref: ', comp); }} />
</TabPanel>
</Tabs>
I saw the docs mentioning domRef but that seems to only apply only to Tabs component
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the TabPanel and Tabs entry points described in the issue, then compare their ref behavior with the documented domRef behavior. Confirm how a ref passed to MyComponent is handled and define completion as the ref callback receiving the component instead of null, with the relevant documentation updated if the API changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100