From 19e09f3629233dfeca52a1fdac1aee626b8d6bbd Mon Sep 17 00:00:00 2001 From: l1xnan Date: Mon, 17 Jun 2024 14:56:33 +0800 Subject: [PATCH] fix: folding button failure --- src/components/custom/TreeView3.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/custom/TreeView3.tsx b/src/components/custom/TreeView3.tsx index ac05088..ead004d 100644 --- a/src/components/custom/TreeView3.tsx +++ b/src/components/custom/TreeView3.tsx @@ -90,8 +90,8 @@ const Node = React.memo( > {item.isFolder() ? ( { - onClick(); + onClick={(e) => { + onClick?.(e); item.onSelect?.(); }} className={cn(