Skip to content

Commit

Permalink
Add onEdgeDoubleClick placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthinking committed Jan 12, 2025
1 parent d534cad commit 082ec0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ui/src/components/DataStory/DataStoryCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ const Flow = ({
onNodeDoubleClick={(_, node) => {
onNodeDoubleClick?.(node);
}}
onEdgeDoubleClick={(event, edge) => {
console.log({
msg: 'Edge double click',
edgeId: edge.id,
})
}}
onEdgesChange={(changes: EdgeChange[]) => {
onEdgesChange(changes);
if (onChange) onChange(toDiagram())
Expand Down

0 comments on commit 082ec0c

Please sign in to comment.