diff options
| author | madelinegr <mgriswold99@gmail.com> | 2019-02-26 17:04:17 -0500 |
|---|---|---|
| committer | madelinegr <mgriswold99@gmail.com> | 2019-02-26 17:04:17 -0500 |
| commit | 36e5de8777ef8bddb66b758e08d1fc0913c59e00 (patch) | |
| tree | 718ef63d1fe33d76f0d66245f5e8aed83cb33e64 /src/client/views/collections/CollectionSchemaView.tsx | |
| parent | 675d619bcac9b73893406ac029a4fd6c1cc290c6 (diff) | |
| parent | bd54526065428de2e931d7254776352199f6e55a (diff) | |
mer con
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); |
