Skip to content

Commit 5c891ce

Browse files
committed
fix forward ref for vertical/horizontal
1 parent 8cc8a0e commit 5c891ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controls/horizontal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ export const Horizontal = React.forwardRef<HTMLDivElement, React.PropsWithChildr
4444
if (isNotEmptyArray(props.css)) css.push(...props.css);
4545

4646
return (
47-
<Section {...props} css={css} />
47+
<Section {...props} css={css} ref={ref} />
4848
);
4949
});

src/controls/vertical.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ export const Vertical = React.forwardRef<HTMLDivElement, React.PropsWithChildren
3838
if (isNotEmptyArray(props.css)) css.push(...props.css);
3939

4040
return (
41-
<Section {...props} css={css} />
41+
<Section {...props} css={css} ref={ref} />
4242
);
4343
});

0 commit comments

Comments
 (0)