Skip to content

Commit

Permalink
Fix #822 - Event propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
Panagiotis Georgakopoulos committed Jan 5, 2021
1 parent a3f43f9 commit 928bf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/useDropHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export const useDropHandler = () => {
return ""
}
return (ev) => {
ev.stopPropagation()
// dataTransfer is in Protected Mode here. see type, let Pluto DropRuler handle it.
if (ev.dataTransfer.types[0] === "text/pluto-cell") return
ev.stopPropagation()
switch (ev.type) {
case "cmdrop":
case "drop":
Expand Down

0 comments on commit 928bf8e

Please sign in to comment.