From 2d4b3c42f0cce5f3b495ca76507c3e32e85994d6 Mon Sep 17 00:00:00 2001 From: James Kerr Date: Thu, 4 Apr 2024 09:38:04 -0700 Subject: [PATCH] Open folder after dropping --- modules/react-arborist/src/controllers/tree-controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/react-arborist/src/controllers/tree-controller.ts b/modules/react-arborist/src/controllers/tree-controller.ts index 0bfcd57..9357fb0 100644 --- a/modules/react-arborist/src/controllers/tree-controller.ts +++ b/modules/react-arborist/src/controllers/tree-controller.ts @@ -311,6 +311,7 @@ export class TreeController { targetParentId: dnd.targetParentId, targetIndex: dnd.targetIndex || 0, }); + if (dnd.targetParentId) this.open(dnd.targetParentId); } dragEnd() {