This commit is contained in:
Timothy J. Baek
2024-10-17 19:45:18 -07:00
parent c171e624eb
commit e6f4da2bfc
3 changed files with 14 additions and 18 deletions

View File

@@ -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;
};