fix drag & drop

This commit is contained in:
Casper Lamboo 2018-06-21 16:10:27 +02:00
parent 023c416b5d
commit b5e0d809c7

View File

@ -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();