petyosi / react-virtuoso

The most powerful virtual list component for React
https://virtuoso.dev
MIT License
5.13k stars 299 forks source link

[BUG] Doesn't work with MUI's Dialog #1044

Closed Hasan-Mir closed 5 months ago

Hasan-Mir commented 5 months ago

Describe the bug The Virtuoso component doesn't show (render) the items when rendering the component inside a MUI's Dialog component. This issue only happens when we use a TransitionComponent that changes the height of the component like Zoom. The Grow transition component causes an issue too and make some empty space at the end of the list when you scroll the list.

Reproduction Codesandbox

To Reproduce Steps to reproduce the behavior:

  1. Go to the sandbox.
  2. Click on open dialog

Expected behavior The list must be displayed correctly.

petyosi commented 5 months ago

https://github.com/petyosi/react-virtuoso/issues/542