Skip to content

Commit 2d9c8fc

Browse files
committed
fix: Item miss ref
1 parent a7d255e commit 2d9c8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RawItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const InternalRawItem = (props: RawItemProps, ref: React.Ref<any>) => {
1414
// Render directly when context not provided
1515
if (!context) {
1616
const { component: Component = 'div', ...restProps } = props;
17-
return <Component {...restProps} />;
17+
return <Component {...restProps} ref={ref} />;
1818
}
1919

2020
const { className: contextClassName, ...restContext } = context;

0 commit comments

Comments
 (0)