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

Fancytree dnd5 triggering multiple loads of lazy nodes on hover #998

Closed
dvstans opened this issue Mar 26, 2020 · 0 comments
Closed

Fancytree dnd5 triggering multiple loads of lazy nodes on hover #998

dvstans opened this issue Mar 26, 2020 · 0 comments

Comments

@dvstans
Copy link

dvstans commented Mar 26, 2020

I tried asking about this on stack overflow and got no response, so I'm posting here as well.

I just updated my application from the old Dnd extension to Dnd5 and I'm now seeing multiple/many server AJAX calls (usually 5 or 6) when I hover over lazy-load nodes while dragging. I have only implemented the dragStart, dragEnter, and dragDrop callbacks. When dragging over a lazy load node, I only see one dragEnter event callback triggered, but this is followed by a variable number of node loads. (I can't really see a pattern to why the number of loads varies.)

Is there some special handling or response required from the lazyLoad callback to prevent this? I should also point out that I also updated to the latest version of Fancytree (2.34.0) so perhaps something else has changed that is causing this? (My tree works fine otherwise.)

Expected and Actual Behavior

Expected: exactly one lazy load call when node auto expansion is triggered.
Actual: from 1 to up to 6 lazy load calls for the same node when auto expansion is triggered.

Note: old Dnd extension works as expected in same application.

Steps to Reproduce the Problem

I don't yet have a simplified example - if this is unexpected behavior (vs usage problem), I will create one.

Environment

  • Latest version of Google Chrome (Ubuntu 18 and Windows 10), Firefox (Ubuntu), Edge (Windows 10)
  • jQuery 1.12.4
  • jQuery UI 1.12.1
  • Fancytree version: 2.34.0
  • Extensions: Dnd5, themeroller
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