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

dataTransfer is undefined (v6+ uses MouseEvent not DragEvent anymore) #2327

Open
ZOUJIELynn opened this issue May 22, 2023 · 4 comments
Open

Comments

@ZOUJIELynn
Copy link

if (event.dataTransfer) {

@adumesny
Copy link
Member

adumesny commented May 25, 2023

that's a 21 months old demo that never been updated per say, nor is it actually published on the index list. No wonder why I didn't remember what it was... unlikely to be looked at anytime soon...

angular code likely very outdated along the rest. Unlike

SHA-1: f5ba6d59f49bd7822b323989dfeb59369949e270

* Enable passing of DragEvent to gridstack dropped event (#1841)

Modification done to allow the passing of DragEvent to gridstack dropped event, allowing access to dataTransfer property. A demo in Angular has been included to showcase this new capability.

Co-authored-by: Samuel Lim <samuel.lim@finantix.com>

@ZOUJIELynn
Copy link
Author

ZOUJIELynn commented May 25, 2023

thanks for your reply , any way for me to transfer data when drag a widget outside now ?

By the way , I use vue3 ~

@gridstack gridstack deleted a comment from ZOUJIELynn Jun 27, 2023
@EgorPopovPP
Copy link

Any news?

@adumesny
Copy link
Member

adumesny commented Mar 30, 2024

we are no longer using DragEvent since v6 but simple MouseEvent (and TouchEvents on mobile) so we don't get dataTransfer per say. suppose I could maybe create/fake it...

Why do you use it and couldn't the info be stored other ways anyway ?

image
image

@adumesny adumesny changed the title dataTransfer is undefined dataTransfer is undefined (v6+ uses MouseEvent not DragEvent anymore) Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants