Probably related to Adding 'tab-active' for animated tabs does not make tab visible by default
React issue. Setting tabActive to a tab that is not the very fisrt tab does now work when animated property is set.
Following code only works when animated property is taken out.
<Tabs animated>
{
view_part.TabComponents.map((val, idx) => (
<Tab
id={`tab-${val.id}`}
key={val.id}
className="page-content"
tabActive={val.id === active_entity}>
{
<val.Component doc={doc} />
}
</Tab>
))
}
</Tabs>
It sets the class ‘tab-active’ correctly, but what is missing is the transform style on the wrapper div with class tabs. Style only appears on clicking one of the tabs.
<div class="tabs" style="transform: translate3d(-100%, 0px, 0px);">
<div id="tab-phases" class="page-content tab">
<h1>Phases</h1>
</div>
<div id="tab-grades" class="page-content tab tab-active">
<h1>Grades</h1>
</div>
</div>