Skip to content

Commit

Permalink
Fixed drag and drop functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronge-2020 committed May 13, 2024
1 parent ab8cf95 commit 29f48c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions javascript/main2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,8 @@ document.querySelectorAll("input[type='number']").forEach((e) => {
e.stopPropagation();
const dt = e.dataTransfer;
const files = dt.files;
document.getElementById("imageUrlInput").value = null;
document.getElementById("fileInput").files = files;
handleImageLoad(files[0], () => segmentImage(true));
};
});
Expand Down

0 comments on commit 29f48c2

Please sign in to comment.