Do not unmount tab content when switching tabs
This commit is contained in:
parent
957ef07467
commit
0173657477
@ -61,7 +61,7 @@ function CustomTabPanel(props: TabPanelProps) {
|
|||||||
aria-labelledby={`tab-${index}`}
|
aria-labelledby={`tab-${index}`}
|
||||||
{...other}
|
{...other}
|
||||||
>
|
>
|
||||||
{tab === index && children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user