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

Possible Problem with DND5 #928

Closed
pschaeffer opened this issue Jan 6, 2019 · 1 comment
Closed

Possible Problem with DND5 #928

pschaeffer opened this issue Jan 6, 2019 · 1 comment

Comments

@pschaeffer
Copy link

Hi,

This is Peter Schaeffer. I posted this question/possible issue over one Stack Overflow. I believe you suggested that I post this question/possible issue here.

I have found that if preventNonNodes is set to true, then the dragEnter() function is never invoked. The reason is line 682 in jquery.fancytree.dnd5.js. That line reads "if (dndOpts.preventNonNodes && !nodeData) {", In practice, nonData is always undefined. As a consequence, setting preventNonNodes to true, causes the dragEnter function to be bypassed.

Of course, in your code it might not be line 682.

@mar10
Copy link
Owner

mar10 commented Jan 6, 2019

Thanks for reporting this here!
nodeData is undefined there, due to permission restrictions of the html5 dnd api.
We can check for the existence of such data (instead of the content) though

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