Skip to content

Commit 1b88b18

Browse files
committed
feat: Provide more row parameters in rowHeight callback
2 parents e8a00b1 + a906f21 commit 1b88b18

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 }),
561+
: rowHeight({ ...row, index }),
562562
},
563563
() => rows[index - 1] || null,
564564
matchKeys

0 commit comments

Comments
 (0)