Search code examples
javascriptjqueryfancytree

Can Fancytree be configured to stay collapsed when an item is dragged and dropped to a parent?


I am working in a tool that uses Fancytree for lists. Currently when I drag and drop an item to nest it, the parent item will expand. I'd like to turn this off so that Fancytree remains in whatever state it's in. I've got a minimal coding background, but know enough that I think I can find the setting if I know what I am looking for.

I've searched though the various files and tried to find the specific behavior configurations but so far, the changes I have made and tested have not resolved it.

Thanks!


Solution

  • You may be looking for the dnd5.autoExpandMS option.
    Pass 0 to disable automatic expansion on hover.