Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 21fa652

Browse filesBrowse files
authored
fix(useDropZone): Allow passing document as target (#4681)
1 parent fac58f0 commit 21fa652
Copy full SHA for 21fa652

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎packages/core/useDropZone/index.ts

Copy file name to clipboardExpand all lines: packages/core/useDropZone/index.ts
+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface UseDropZoneOptions {
3131
}
3232

3333
export function useDropZone(
34-
target: MaybeRefOrGetter<HTMLElement | null | undefined>,
34+
target: MaybeRefOrGetter<HTMLElement | Document | null | undefined>,
3535
options: UseDropZoneOptions | UseDropZoneOptions['onDrop'] = {},
3636
): UseDropZoneReturn {
3737
const isOverDropZone = shallowRef(false)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.