Doesn't work properly with Material UI (example attached)
dmitryy opened this issue · comments
Dmitry Yanchenko commented
I'm trying to use it with MUI v5. When you have a high page with the Select component, the iframe resized correctly but when you click on the select, it always jumps to the top. Probably material UI resizes the body somehow and it forces height calculation. I've prepared an example:
https://dmitryy.github.io/iframe-resizer-react-mui/ (try to click the latest component and you will see page jumps to the top)
- src of the iframe page - https://github.com/dmitryy/iframe-resizer-react-mui/blob/main/src/App.tsx
- src of the content page - https://github.com/dmitryy/iframe-resizer-react-content/blob/main/src/App.tsx
Dmitry Yanchenko commented
Sorry guys, looks like it's not about iframe-resizer-react component. If replace it with regular iframe tag, I have the same behaviour. It must be something with Material UI.
Closing this issue.