Skip to content

Commit

Permalink
refactor(components): [only-child] simplify conditions (#8480)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuhangyeong committed Jun 27, 2022
1 parent 5d88f62 commit 9c154e9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/components/slot/src/only-child.tsx
Expand Up @@ -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:
Expand Down

0 comments on commit 9c154e9

Please sign in to comment.