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

Autosizer component does not accept any refs or spread props. #1831

Open choierica opened 3 months ago

choierica commented 3 months ago

Bug Report

We need to set the "role" prop on the AutoSizer component to be "none", but currently, the component is not accepting any refs. https://github.com/bvaughn/react-virtualized/blob/master/source/AutoSizer/AutoSizer.js

What is the current behavior?

Even if you set a "role" prop or spread the props, the component itself it not accepting it.

image

What is the expected behavior?

The component should allow users to accept refs.

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?

This is fixed in V9, but in V0, we are still seeing this issue and we are not making a migration to V9 soon.