Skip to content

Commit a68fcfa

Browse files
authored
Add row info to rowHeight function
Enable modifying height based on row info.
1 parent f202d3b commit a68fcfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

0 commit comments

Comments
 (0)