From 2e81a7840f28577debef0cb927ded4d31ce27e02 Mon Sep 17 00:00:00 2001 From: yijiaquan <2018298805@qq.com> Date: Fri, 11 Jul 2025 18:14:49 +0800 Subject: [PATCH] refactor: Modify the triggering method of the variable selector in the modification object subtree panel. - Change the "onClick" event to "onMouseDown" event to address any potential issues related to mouse events, such as when using Http json editor to select structured data, the position offset after clicking causes the inability to select. --- .../variable/object-child-tree-panel/picker/field.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/field.tsx b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/field.tsx index f90f30e7ce..ecc67885d1 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/field.tsx +++ b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/field.tsx @@ -41,7 +41,7 @@ const Field: FC = ({
!readonly && onSelect?.([...valueSelector, name])} + onMouseDown={() => !readonly && onSelect?.([...valueSelector, name])} >