Skip to content

Commit

Permalink
fix(Tabs): When using list props and destroyOnHide is false, the pane…
Browse files Browse the repository at this point in the history
…l content is lost (Tencent#2497)
  • Loading branch information
lzy2014love committed Sep 6, 2023
1 parent 9aa808a commit d06fa11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const Tabs = forwardRefWithStatics(
return child;
}
if (child.props.destroyOnHide === false) {
return <TabPanel style={{ display: 'none' }}>{child.props.children}</TabPanel>;
return <TabPanel {...child.props} style={{ display: 'none' }}></TabPanel>;
}
}
return null;
Expand Down

0 comments on commit d06fa11

Please sign in to comment.