Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix issue where drag and drop throws illegal invocation #6145

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

dindjarinjs
Copy link
Contributor

Description of changes

Fixes an issue where dropping a file in the dropzone results in the following error message:
CleanShot 2024-11-18 at 12 36 27

This error is due to the webkitGetAsEntry method being destructured off the DataTransferItem, resulting it not being able to act on the item. Fix is to stop destructuring properties off of the DataTransferItem.

Issue #, if available

Description of how you validated changes

Checklist

  • Have read the Pull Request Guidelines
  • PR description included
  • yarn test passes and tests are updated/added
  • PR title and commit messages follow conventional commit syntax
  • If this change should result in a version bump, changeset added (This can be done after creating the PR.) This does not apply to changes made to docs, e2e, examples, or other private packages.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dindjarinjs dindjarinjs requested a review from a team as a code owner November 18, 2024 20:04
Copy link

changeset-bot bot commented Nov 18, 2024

🦋 Changeset detected

Latest commit: d041302

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@aws-amplify/ui-react-core Patch
@aws-amplify/ui-react-auth Patch
@aws-amplify/ui-react-core-auth Patch
@aws-amplify/ui-react-core-notifications Patch
@aws-amplify/ui-react-geo Patch
@aws-amplify/ui-react-native Patch
@aws-amplify/ui-react-notifications Patch
@aws-amplify/ui-react-storage Patch
@aws-amplify/ui-react Patch
@aws-amplify/ui-react-native-auth Patch
@aws-amplify/ui-react-liveness Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@haverchuck
Copy link
Contributor

Approving, assuming that we tested that folder structure is maintained upon parsing and upload when drag/dropping a directory.

@dindjarinjs dindjarinjs merged commit 90ea18b into main Nov 18, 2024
34 checks passed
@dindjarinjs dindjarinjs deleted the fix-dropzone branch November 18, 2024 21:44
@github-actions github-actions bot mentioned this pull request Nov 18, 2024
dindjarinjs added a commit that referenced this pull request Nov 19, 2024
* chore: fix issue where drag and drop throws illegal invocation

* Create dry-points-fold.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants