React-virtualized: ArrowKeyStepper seems to not work with List from 9.19.0 onwards

Created on 20 Apr 2019  路  4Comments  路  Source: bvaughn/react-virtualized

Hi, been playing around with this library and enjoying it a lot.

I think there is an issue from version 9.19.0 onwards with ArrowKeyStepper:
https://codesandbox.io/s/j3y8jq63yw

The keyboard up and down arrows don't work on the List.

Here is the same code using 9.18.5:
https://codesandbox.io/s/jzq6joxn33

The keyboard up and down arrows work nicely.

|-------------------|----------|
| React | 16.8.6 |
| React DOM | 16.8.6 |
| react-virtualized | 9.19.0 |

Had a quick look in the commits for 9.19 in ArrowKeyStepper, but this was all I found:
https://github.com/bvaughn/react-virtualized/compare/9.19.0...master#diff-1b8d904622e4dbc4a8978578ecd8f2baL7

Any help here would be great. Will need to use 9.18.5 for now.
Thanks

Most helpful comment

any update here?

All 4 comments

any new with that?

It does not work on MultiGrid in my project as well. The scrollToRow and scrollToColumn always 0.

react-virtualize: 9.20.1
react: 16.8.3

https://github.com/bvaughn/react-virtualized/blob/9913953d5ebfd2caedadefea2f3b53978b6eb567/source/ArrowKeyStepper/ArrowKeyStepper.js#L67

this is where the issue locates.
When you scroll, it changes the scrollToRow in the state but it reset the value from prop.

any update here?

Was this page helpful?
0 / 5 - 0 ratings