diff --git a/packages/components/slot/src/only-child.tsx b/packages/components/slot/src/only-child.tsx index 7f6943fbb841e..636fe46469f30 100644 --- a/packages/components/slot/src/only-child.tsx +++ b/packages/components/slot/src/only-child.tsx @@ -61,7 +61,6 @@ function findFirstLegitChild(node: VNode[] | undefined): VNode | null { case Comment: continue case Text: - return wrapTextContent(child) case 'svg': return wrapTextContent(child) case Fragment: