tabs icon indicating copy to clipboard operation
tabs copied to clipboard

How to set a default tab to be active?

Open jamalx31 opened this issue 4 years ago • 3 comments

when using the example from the readme non of the panels content is visible unless you click on one of the tabs. how to you show a panel by default?

jamalx31 avatar Apr 28 '20 16:04 jamalx31

found the answer after checking source code, you pass state to <Tabs /> what is odd is that the tabs indexes are 1,3,5 etc instead of 0,1,2...

UPDATE: this bug appears if you use React.StrictMode .. not sure why

jamalx31 avatar Apr 28 '20 17:04 jamalx31

found the answer after checking source code, you pass state to what is odd is that the tabs indexes are 1,3,5 etc instead of 0,1,2...

UPDATE: this bug appears if you use React.StrictMode .. not sure why

The same problem

TrejoCode avatar May 05 '20 22:05 TrejoCode

My problem was solved with this: #60 Check it, please.

TrejoCode avatar May 05 '20 22:05 TrejoCode