Skip to content

Commit a906f21

Browse files
committed
fix: add row variables to the callback at the top level
1 parent 43486f3 commit a906f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/react-sortable-tree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ class ReactSortableTree extends Component {
558558
height:
559559
typeof rowHeight !== 'function'
560560
? rowHeight
561-
: rowHeight({ index, row }),
561+
: rowHeight({ ...row, index }),
562562
},
563563
() => rows[index - 1] || null,
564564
matchKeys

0 commit comments

Comments
 (0)