feat: implement isBranchRowActionTarget function and add tests for branch row interaction

This commit is contained in:
mlogclub
2026-06-30 11:39:01 +08:00
parent fb612eb32e
commit d72079a580
3 changed files with 26 additions and 0 deletions
@@ -5,6 +5,7 @@ import { cn } from "@/lib/utils"
import { useWorkflowBranchSelection } from "./workflow-branch-selection"
import {
createConditionBranchID,
isBranchRowActionTarget,
normalizeNodeConfig,
type WorkflowConditionBranch,
} from "./workflow-utils"
@@ -99,6 +100,9 @@ function WorkflowConditionBranchRow({
)}
onPointerDownCapture={(event) => {
event.stopPropagation()
if (isBranchRowActionTarget(event.target)) {
return
}
onSelect()
}}
onMouseDownCapture={(event) => {