From b5e0d809c7217b94294030b038aa8d5963807125 Mon Sep 17 00:00:00 2001 From: Casper Lamboo Date: Thu, 21 Jun 2018 16:10:27 +0200 Subject: [PATCH] fix drag & drop --- src/components/App.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/App.js b/src/components/App.js index 7f8d507..cd45540 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -102,6 +102,10 @@ class App extends React.Component { window.removeEventListener('keydown', this.onKeyDown); } + dragOver = event => { + event.preventDefault(); + }; + onDrop = async event => { const { openSketch, addImage } = this.props; event.preventDefault();