diff options
| author | madelinegr <laura_wilson@brown.edu> | 2019-02-26 17:01:50 -0500 |
|---|---|---|
| committer | madelinegr <laura_wilson@brown.edu> | 2019-02-26 17:01:50 -0500 |
| commit | d1e6373423d6e66ac993e6399ef0821b9f69a268 (patch) | |
| tree | ca03443fd1337490941bef5da699c8a0d8b707c4 /src/client/views/collections/CollectionSchemaView.tsx | |
| parent | 95dfe5a650d4d4f5fde890cabaeae949cb3aaf9d (diff) | |
| parent | bd54526065428de2e931d7254776352199f6e55a (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into treeview
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSchemaView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx index 106a5c4f5..03110a9c7 100644 --- a/src/client/views/collections/CollectionSchemaView.tsx +++ b/src/client/views/collections/CollectionSchemaView.tsx @@ -45,9 +45,9 @@ export class CollectionSchemaView extends CollectionViewBase { <FieldView {...props} /> ) let reference = React.createRef<HTMLDivElement>(); - let onItemDown = setupDrag(reference, props.doc); + let onItemDown = setupDrag(reference, () => props.doc); return ( - <div onPointerDown={onItemDown} ref={reference}> + <div onPointerDown={onItemDown} key={props.doc.Id} ref={reference}> <EditableView contents={contents} height={36} GetValue={() => { let field = props.doc.Get(props.fieldKey); |
