diff --git a/src/index.tsx b/src/index.tsx index 7bd0e1f..b856aeb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -9,6 +9,16 @@ const client = new ApolloClient({ cache: new InMemoryCache() }) +// Disable drag and drop behaviour on document +function disable(event: DragEvent) { + event.preventDefault() + event.stopPropagation() +} +document.addEventListener("dragenter",disable) +document.addEventListener("dragleave",disable) +document.addEventListener("dragover",disable) +document.addEventListener("drop",disable) + ReactDOM.render(