Browse Source

fix drag & drop

pull/6/head
Casper Lamboo 4 years ago
parent
commit
b5e0d809c7
  1. 4
      src/components/App.js

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

Loading…
Cancel
Save