diff options
author | ab <abdullah_ahmed@brown.edu> | 2019-06-05 11:08:04 -0400 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2019-06-05 11:08:04 -0400 |
commit | 79f3d919713129c14d7edf7fc3e76b0565ddd1f0 (patch) | |
tree | 1c5b621becfcfe1c7d21210d7ec34fe7ed430fdc /src/client/views/MainView.tsx | |
parent | 5a494838844f297139e506fae2f3cd7986b8b964 (diff) | |
parent | ed623d6cf8b7663c4fb92f9991caec1f96363b8c (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into text_box_ab
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index a093ffdec..42d5929bf 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -170,6 +170,12 @@ export class MainView extends React.Component { } } + onDrop = (e: React.DragEvent<HTMLDivElement>) => { + e.preventDefault(); + e.stopPropagation(); + console.log("Drop"); + } + @action onResize = (r: any) => { this.pwidth = r.offset.width; @@ -203,7 +209,7 @@ export class MainView extends React.Component { const pres = mainCont ? FieldValue(Cast(mainCont.presentationView, Doc)) : undefined; return <Measure offset onResize={this.onResize}> {({ measureRef }) => - <div ref={measureRef} id="mainContent-div"> + <div ref={measureRef} id="mainContent-div" onDrop={this.onDrop}> {content} {pres ? <PresentationView Document={pres} key="presentation" /> : null} </div> |