twobin / react-lazyload

Lazy load your component, image or anything matters the performance.
MIT License
5.85k stars 487 forks source link

Not working with Material Ui FullScreen Dialog #369

Closed jonath92 closed 2 years ago

jonath92 commented 2 years ago

The title says pretty much everything. Components inside a LazyLoad Component which again are on a Mui Dialog with fullScreen=true are never rendered. See this code: https://codesandbox.io/s/fullscreendialog-material-demo-forked-5u0cn?file=/demo.tsx

jonath92 commented 2 years ago

Ok took me some time but I found the problem. It works when adding the overflow prop to the Lazyload component. The reason therefore is that the dialog from react adds overflow:'hidden' to the body.