fix(tabs): destroy inactive tab pane
This commit is contained in:
parent
b4e8855eca
commit
c4f572fda8
@ -37,7 +37,13 @@ export const Tabs: any = observer(
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<DndContext>
|
<DndContext>
|
||||||
<AntdTabs {...contextProps} tabBarExtraContent={render()} style={props.style} items={items} />
|
<AntdTabs
|
||||||
|
{...contextProps}
|
||||||
|
destroyInactiveTabPane
|
||||||
|
tabBarExtraContent={render()}
|
||||||
|
style={props.style}
|
||||||
|
items={items}
|
||||||
|
/>
|
||||||
</DndContext>
|
</DndContext>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user