Skip to content

Commit

Permalink
fix: only text overflow if children are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
maxholman committed Jan 16, 2023
1 parent f3128d3 commit 5231feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const BoxInner = <T extends keyof ReactHTMLAttributesHacked = 'div'>(
) || undefined,
ref,
},
textOverflow ? (
textOverflow && children ? (
<span className={textOverflow && textOverflowVariants[textOverflow]}>
{children}
</span>
Expand Down

0 comments on commit 5231feb

Please sign in to comment.