File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/compass-crud/src/components Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type HadronDocument from 'hadron-document';
33import { KeylineCard } from '@mongodb-js/compass-components' ;
44import Document , { type DocumentProps } from './document' ;
55import { useDocumentItemContextMenu } from './use-document-item-context-menu' ;
6+ import { useMergeRefs } from '@mongodb-js/compass-components' ;
67
78export type DocumentListViewItemProps = {
89 doc : HadronDocument ;
@@ -40,8 +41,10 @@ const DocumentListViewItem: React.FC<DocumentListViewItemProps> = ({
4041 openInsertDocumentDialog,
4142 } ) ;
4243
44+ const mergedRef = useMergeRefs ( [ docRef , contextMenuRef ] ) ;
45+
4346 return (
44- < KeylineCard ref = { mergeRefs ( docRef , contextMenuRef ) } >
47+ < KeylineCard ref = { mergedRef } >
4548 { scrollTriggerRef && docIndex === 0 && < div ref = { scrollTriggerRef } /> }
4649 < Document
4750 doc = { doc }
You can’t perform that action at this time.
0 commit comments