You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: