From 5231febc1d29242cb6a04e6d72eb6ca0226cd3d3 Mon Sep 17 00:00:00 2001 From: Max Holman Date: Mon, 16 Jan 2023 21:12:55 +0800 Subject: [PATCH] fix: only text overflow if children are passed --- lib/core.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.tsx b/lib/core.tsx index a9a7eda..350ace3 100644 --- a/lib/core.tsx +++ b/lib/core.tsx @@ -97,7 +97,7 @@ const BoxInner = ( ) || undefined, ref, }, - textOverflow ? ( + textOverflow && children ? ( {children}