react-virtualized icon indicating copy to clipboard operation
react-virtualized copied to clipboard

Multigrid is breaking on 9.10.1 in certain circumstances.

Open Reinami opened this issue 9 years ago • 2 comments

The newest version 9.10.1 gives this error when using a multigrid, I can't share explicit code, working on trying to find what might be causing it to give something reproducible, will update once it is there, but just wanted to add this here in case anyone else is getting it:

Uncaught TypeError: Cannot read property 'offset' of undefined at CellSizeAndPositionManager.getUpdatedOffsetForIndex (eval at (main.js:9781), :180:29) at ScalingCellSizeAndPositionManager.getUpdatedOffsetForIndex (eval at (main.js:9775), :131:53) at Grid._getCalculatedScrollLeft (eval at (main.js:9763), :1074:51) at Grid._updateScrollLeftForScrollToColumn (eval at (main.js:9763), :1089:39) at updateScrollIndexCallback (eval at (main.js:9763), :537:27) at updateScrollIndexHelper (eval at (main.js:9805), :53:7) at Grid.componentDidUpdate (eval at (main.js:9763), :524:47) at measureLifeCyclePerf (eval at (main.js:1795), :73:12) at eval (eval at (main.js:1795), :726:11) at CallbackQueue.notifyAll (eval at (main.js:1417), :74:22)

Reinami avatar Sep 28 '17 22:09 Reinami

I believe you're experiencing the same problem I was having and that #830 had. The MultiGrid doesn't have default props for scrollToRow or scrollToColumn, which in conjunction with a recent code change, is causing this issue. I submitted PR #820 to add default props, but setting scrollToRow and scrollToColumn to -1 should fix the problem if anyone else is experiencing it.

mcordova47 avatar Sep 29 '17 21:09 mcordova47

I believe this should be fixed by PR #820 which was just merged and will be released with 9.11 in a few moments

bvaughn avatar Oct 14 '17 18:10 bvaughn