Skip to content

Commit a50bc0b

Browse files
committed
Add node data prop to custom button
1 parent 0058edb commit a50bc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ButtonPanels.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const EditButtons: React.FC<EditButtonProps> = ({
127127
)}
128128
{customButtons?.map(({ Element, onClick }, i) => (
129129
<div key={i} onClick={(e) => onClick(nodeData, e)}>
130-
<Element />
130+
<Element nodeData={nodeData} />
131131
</div>
132132
))}
133133
{isAdding && handleAdd && type === 'object' && (

0 commit comments

Comments
 (0)