Skip to content

Commit

Permalink
Don't run file event when moving cells
Browse files Browse the repository at this point in the history
  • Loading branch information
Panagiotis Georgakopoulos committed Dec 5, 2020
1 parent de9c46c commit 2c286b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/components/useDropHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const useDropHandler = (requests, on_change, cell_id) => {
const set_drag_active = useMemo(() => _.debounce(set_drag_active_fast, DEBOUNCE_MAGIC_MS), [set_drag_active_fast])
const inactive_handler = useMemo(
() => (ev) => {
if (ev.dataTransfer.types[0] === "text/pluto-cell") return
switch (ev.type) {
case "drop":
ev.preventDefault() // don't file open
Expand Down

0 comments on commit 2c286b3

Please sign in to comment.