Make all object path points clickable (#17367)

This commit is contained in:
Josh Hawkins
2025-03-25 14:08:40 -06:00
committed by GitHub
parent e80caabee6
commit 2c3ea5b74e
2 changed files with 16 additions and 7 deletions
@@ -95,10 +95,8 @@ export function ObjectPath({
fill={getPointColor(color, pos.lifecycle_item?.class_type)}
stroke="white"
strokeWidth={width / 2}
onClick={() =>
pos.lifecycle_item && onPointClick && onPointClick(index)
}
style={{ cursor: pos.lifecycle_item ? "pointer" : "default" }}
onClick={() => onPointClick && onPointClick(index)}
style={{ cursor: "pointer" }}
/>
</TooltipTrigger>
<TooltipPortal>