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

e.dataTransfer is null #5622

Open
lavanyaburlagadda1807 opened this issue Aug 13, 2024 · 2 comments
Open

e.dataTransfer is null #5622

lavanyaburlagadda1807 opened this issue Aug 13, 2024 · 2 comments

Comments

@lavanyaburlagadda1807
Copy link

Describe the bug

After writing some code in ace editor, when we are dragging the the text that is written, it properly being dragged but along with that we are getting e.dataTransfer is null and reporting to sentry.

We are getting this error only in firefox

Expected Behavior

Error should not be caused

Current Behavior

Getting error as e.dataTransfer is null

Reproduction Steps

Even in ace editor as well we are getting this issue.

https://mkslanc.github.io/ace-playground/#hello-world

Write some code, select it and drag it

Possible Solution

No response

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

1.33.0 / Firefox / Ubuntu

@andredcoliveira
Copy link
Contributor

I'm not familiar with this feature. How do you drag the code? If I select code, and then try to drag it, it simply starts a new selection. Even if I set draggable=true in the HTML element that has Ace.

Can you provide a fully reproducible code snippet?

In any case, the error is probably coming from this place:

e.dataTransfer.dropEffect = dragOperation = getDropEffect(e);

@lavanyaburlagadda1807
Copy link
Author

Could you please check the below video, we are just using Ace editor, we haven't written anything related to drag

Screencast from 21-08-24 11:56:03 AM IST.webm
I am using firefox version 129.0 (64-bit)

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

2 participants