From c36053dc55fb4422281dc4126a6f7f0f30367f77 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Tue, 4 Jun 2024 10:26:52 -0300 Subject: [PATCH] Fixed button not being able to handle multiple children when asChild is done --- src/frontend/src/components/ui/button.tsx | 49 ++++++++++++----------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/src/frontend/src/components/ui/button.tsx b/src/frontend/src/components/ui/button.tsx index 33a8e8ba0..ed0abc120 100644 --- a/src/frontend/src/components/ui/button.tsx +++ b/src/frontend/src/components/ui/button.tsx @@ -66,30 +66,31 @@ const Button = React.forwardRef( newChildren = toTitleCase(children); } return ( - -
- -
-
- {newChildren} + +
+
+ +
+
+ {newChildren} +
);