From b99fccd91184a328cc3c61e7a84eccdeb7a9f124 Mon Sep 17 00:00:00 2001 From: Bruno Henriques <zettca@users.noreply.github.com> Date: Mon, 11 Nov 2024 17:13:53 +0000 Subject: [PATCH] fix(Card): add missing ref --- packages/core/src/Card/Card.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/Card/Card.tsx b/packages/core/src/Card/Card.tsx index aac7efcdc5..0dc223a280 100644 --- a/packages/core/src/Card/Card.tsx +++ b/packages/core/src/Card/Card.tsx @@ -41,7 +41,7 @@ export const HvCard = forwardRef< // no-indent React.ComponentRef<"div">, HvCardProps ->((props) => { +>((props, ref) => { const { classes: classesProp, style, @@ -64,6 +64,7 @@ export const HvCard = forwardRef< return ( <div + ref={ref} style={mergeStyles(style, { "--bg-color": getColor(bgcolor), "--bar-height": `${selected ? 4 : 2}px`,