From dc52d9cb4b58fd81c6ceafcd19470e9fe7dfa989 Mon Sep 17 00:00:00 2001 From: Naki Date: Tue, 5 Jul 2022 18:39:28 +0900 Subject: [PATCH] fix: space-evenly not working in Stack component --- src/utils/getSpacedChildren.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/getSpacedChildren.tsx b/src/utils/getSpacedChildren.tsx index 6bfc37d40..40edab648 100644 --- a/src/utils/getSpacedChildren.tsx +++ b/src/utils/getSpacedChildren.tsx @@ -75,7 +75,8 @@ const getSpacedChildren = ( {child} {disableCSSMediaQueries ? ( - index < childrenArray.length - 1 && + index < childrenArray.length - 1 && + space !== undefined && ) : ( <> )}