Skip to content

Commit

Permalink
fix: Disable drag & drop in grid view
Browse files Browse the repository at this point in the history
  • Loading branch information
sprout2000 committed Oct 14, 2023
1 parent 9c7f26b commit 5c45640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export const App = () => {
};

const handleDrop = async (e: React.DragEvent<HTMLDivElement>) => {
handlePreventDefault(e);

if (grid) {
return false;
}

handlePreventDefault(e);

if (e.dataTransfer) {
const file = e.dataTransfer.files[0];

Expand Down

0 comments on commit 5c45640

Please sign in to comment.