Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

Merge pull request #284 from liqun98/feature/drag_import

Aykut Saraçb8a86b14792f
diff --cc src/containers/Modals/ImportModal/index.tsx
index 02c9da28,3cab186e..cb49ebc2
--- a/src/containers/Modals/ImportModal/index.tsx
+++ b/src/containers/Modals/ImportModal/index.tsx
@@@ -86,9 -97,11 +98,12 @@@ export const ImportModal: React.FC<Moda
onChange={e => setURL(e.target.value)}
type="url"
placeholder="URL of JSON to fetch"
+ autoFocus
/>
- <StyledUploadWrapper>
+ <StyledUploadWrapper
+ onDrop={handleFileDrag}
+ onDragOver={handleFileDrag}
+ >
<input
key={jsonFile?.name}
onChange={handleFileChange}