refac
This commit is contained in:
1 parent
c171e624eb
commit
e6f4da2bfc
3 files changed
+14
-18
No files matched your search
@@ -22,11 +22,13 @@
|
||||
|
||||
const onDragOver = (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
draggedOver = true;
|
||||
};
|
||||
|
||||
const onDrop = (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
if (folderElement.contains(e.target)) {
|
||||
console.log('Dropped on the Button');
|
||||
@@ -47,6 +49,8 @@
|
||||
|
||||
const onDragLeave = (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
draggedOver = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user