bvaughn / react-virtualized

React components for efficiently rendering large lists and tabular data
http://bvaughn.github.io/react-virtualized/
MIT License
26.1k stars 3.05k forks source link

"recomputeRowHeights(index)" only updates "ReactVirtualized__Grid__innerScrollContainer" once when called = wrong calculation for container height #1782

Open yelnyafacee opened 1 year ago

yelnyafacee commented 1 year ago

Bug Report

Please include either a failing unit test or a simple repro. You can start by forking this Code Sandbox: https://stackoverflow.com/questions/74121106/recomputerowheightsindex-only-updates-reactvirtualized-grid-innerscrollco https://codesandbox.io/s/nameless-microservice-itv3sb?file=/pages/index.js

What is the current behavior?

"recomputeRowHeights(index)" only updates "ReactVirtualizedGridinnerScrollContainer" once and wont update at subsequent calls

What is the expected behavior?

"recomputeRowHeights(index)" updates "ReactVirtualizedGridinnerScrollContainer" everytime it is called

Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?

|-------------------|----------| | Browser | Google Chrome Version 106.0.5249.119 (Official Build) (64-bit) | | OS | Windows 11 | | React | 18.2.0 | | React DOM | 18.2.0 | | react-virtualized | ^9.22.3 |