react-tabs
react-tabs copied to clipboard
Getting a ref to TabPanel's component
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
We have same issue. We have two tabs:
- One tab contain the form
- One tab contain the select component
When we active the tab select and click on submit, we can't get the ref data from the form tab.
@astanciu is still there this issue? I try version 2.2.1 and it works fine.
It doesn't work with the latest version. If you find that working, do your code using fiddle or something else