From fff130ab797c84f2b0b6ffb0c055aa74f10fee75 Mon Sep 17 00:00:00 2001 From: Ori Riner Date: Sat, 13 Jan 2018 18:53:16 +0200 Subject: [PATCH] Fix List with CellMeasurer on first paint (#959) * List no longer masks parent value for CellMeasurer --- source/List/List.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/List/List.js b/source/List/List.js index 08226661d..c2dbdfe8d 100644 --- a/source/List/List.js +++ b/source/List/List.js @@ -209,6 +209,7 @@ export default class List extends React.PureComponent { } _cellRenderer = ({ + parent, rowIndex, style, isScrolling, @@ -235,7 +236,7 @@ export default class List extends React.PureComponent { isScrolling, isVisible, key, - parent: this, + parent, }); };