phphe/he-tree

Data inconsistency during node dragging

Opened this issue · 1 comments

To implement auto-save behavior, I use a watcher to catch data changes. I've noticed that the data changes while dragging a node and before dropping it, resulting in data containing nodes with empty objects. Is this the expected behavior? I attempted to use the before-drag-start and after-drop events to track the dragging process. However, I found that clicking on a node without dragging triggers the before-drag-start event, but the after-drop event is never called. Can anyone provide insight into this behavior?

don't watch, just use after-drop or change event