Skip to content

fix(useDropZone): validate deferred data types on drop#5449

Open
puneetdixit200 wants to merge 1 commit into
vueuse:mainfrom
puneetdixit200:fix-dropzone-deferred-datatype-validation
Open

fix(useDropZone): validate deferred data types on drop#5449
puneetdixit200 wants to merge 1 commit into
vueuse:mainfrom
puneetdixit200:fix-dropzone-deferred-datatype-validation

Conversation

@puneetdixit200

Copy link
Copy Markdown

Summary

  • defer dataTypes validation when drag events do not expose item metadata
  • validate dropped files against dataTypes and multiple when the final drop event has files
  • reset drop-zone state for rejected deferred drops

Fixes #3573

Tests

  • pnpm exec vitest run --project unit packages/core/useDropZone/index.test.ts
  • pnpm test:unit
  • pnpm lint
  • pnpm typecheck

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 22, 2026
@puneetdixit200 puneetdixit200 force-pushed the fix-dropzone-deferred-datatype-validation branch from aa7a50b to 7365212 Compare May 23, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

useDropZone not working on Mac OS

1 participant