From 6486f3b539ae10158e2bec3b496c43f5dd4ebc8a Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 31 Aug 2022 14:31:44 -0400 Subject: [PATCH] Fix ref passed to Stack error --- app/soapbox/components/ui/stack/stack.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/soapbox/components/ui/stack/stack.tsx b/app/soapbox/components/ui/stack/stack.tsx index 3398d8df2..18796baaa 100644 --- a/app/soapbox/components/ui/stack/stack.tsx +++ b/app/soapbox/components/ui/stack/stack.tsx @@ -37,12 +37,13 @@ interface IStack extends React.HTMLAttributes { } /** Vertical stack of child elements. */ -const Stack: React.FC = (props) => { +const Stack: React.FC = React.forwardRef((props, ref: React.LegacyRef | undefined) => { const { space, alignItems, justifyContent, className, grow, ...filteredProps } = props; return (
= (props) => { }, className)} /> ); -}; +}); export default Stack;