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

Fix desktop drag events that don't have associated files #2358

Merged

Conversation

ealmloff
Copy link
Member

This fixes desktop drag events that don't have associated files. We were previously always attaching a files placeholder in JS and replacing that files placeholder with the last dropped file in our desktop code. This PR changes the javascript code to only attach a placeholder if there was a file associated with the web event

Fixes #2328

@ealmloff ealmloff added bug Something isn't working desktop Suggestions related to the desktop renderer labels Apr 22, 2024
@jkelleyrtp jkelleyrtp merged commit 6234f60 into DioxusLabs:main Apr 25, 2024
9 checks passed
@ealmloff ealmloff deleted the fix-non-file-desktop-drag-events branch April 25, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working desktop Suggestions related to the desktop renderer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when using ondragstart
2 participants