Skip to content

Commit 21fa652

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/useDropZone/index.ts

Lines changed: 1 addition & 1 deletion
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)