Skip to content

Commit

Permalink
fix(Card): add missing ref
Browse files Browse the repository at this point in the history
  • Loading branch information
zettca committed Nov 12, 2024
1 parent f2e841a commit b99fccd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const HvCard = forwardRef<
// no-indent
React.ComponentRef<"div">,
HvCardProps
>((props) => {
>((props, ref) => {
const {
classes: classesProp,
style,
Expand All @@ -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`,
Expand Down

0 comments on commit b99fccd

Please sign in to comment.