From d06fa11f1082d24dc977e26856596f97cf879d53 Mon Sep 17 00:00:00 2001 From: lzy2014love Date: Wed, 6 Sep 2023 21:02:36 +0800 Subject: [PATCH] fix(Tabs): When using list props and destroyOnHide is false, the panel content is lost (#2497) --- src/tabs/Tabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabs/Tabs.tsx b/src/tabs/Tabs.tsx index 46fff8daf..507c834be 100644 --- a/src/tabs/Tabs.tsx +++ b/src/tabs/Tabs.tsx @@ -93,7 +93,7 @@ const Tabs = forwardRefWithStatics( return child; } if (child.props.destroyOnHide === false) { - return {child.props.children}; + return ; } } return null;