Skip to content

Commit fe46e6f

Browse files
committed
fix(core,nodes): rename parentNode prop to parent
Signed-off-by: braks <[email protected]>
1 parent 0476dff commit fe46e6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/components/Nodes/NodeWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const NodeWrapper = defineComponent({
215215
dimensions: node.dimensions,
216216
isValidTargetPos: node.isValidTargetPos,
217217
isValidSourcePos: node.isValidSourcePos,
218-
parentFoo: node.parentNode,
218+
parent: node.parentNode,
219219
zIndex: node.computedPosition.z,
220220
targetPosition: node.targetPosition,
221221
sourcePosition: node.sourcePosition,

packages/core/src/types/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export interface NodeProps<Data = ElementData, CustomEvents = {}, Type extends s
131131
/** called when used as source for new connection */
132132
isValidSourcePos?: ValidConnectionFunc
133133
/** parent node id */
134-
parentNode?: string
134+
parent?: string
135135
/** is node currently dragging */
136136
dragging: boolean
137137
resizing: boolean

0 commit comments

Comments
 (0)