fix(tabs): destroy inactive tab pane

This commit is contained in:
chenos 2023-10-07 15:36:41 +08:00
parent b4e8855eca
commit c4f572fda8

View File

@ -37,7 +37,13 @@ export const Tabs: any = observer(
return (
<DndContext>
<AntdTabs {...contextProps} tabBarExtraContent={render()} style={props.style} items={items} />
<AntdTabs
{...contextProps}
destroyInactiveTabPane
tabBarExtraContent={render()}
style={props.style}
items={items}
/>
</DndContext>
);
},