[fix] tldraw file drop (#1616)
This PR removes a line of code that was filtering out .tldraw files when dropping files onto the canvas. ### Change Type - [x] `patch` — Bug fix
This commit is contained in:
parent
55acf046aa
commit
4b8491d388
1 changed files with 1 additions and 3 deletions
|
@ -102,9 +102,7 @@ export function useCanvasEvents() {
|
|||
preventDefault(e)
|
||||
if (!e.dataTransfer?.files?.length) return
|
||||
|
||||
const files = Array.from(e.dataTransfer.files).filter(
|
||||
(file) => !file.name.endsWith('.tldr')
|
||||
)
|
||||
const files = Array.from(e.dataTransfer.files)
|
||||
|
||||
const rect = editor.getContainer().getBoundingClientRect()
|
||||
|
||||
|
|
Loading…
Reference in a new issue