When opening a Select, Drawer, or a Dialog from a "sticky" dom, the page will jump to the top when Menu/Paper/Drawer/Dialog is closed
https://2xyjpxj4kj.codesandbox.io/
Scroll down, open the select, and close it. The page jumps to top.
| Tech | Version |
|--------------|---------|
| Material-UI | 1.0.0-beta.34 |
| React | 16.2.0 |
| browser | Chrome 65 |
It's a Chrome bug only. I can't reproduce it on Safari, Firefox or Edge.
I'm encouraging you to open an issue on Chrome side.
position="fixed" over position="sticky" solves the problem.disableRestoreFocus, the equivalent of commenting the following line solves the issue.
Most helpful comment
It's a Chrome bug only. I can't reproduce it on Safari, Firefox or Edge.
I'm encouraging you to open an issue on Chrome side.
position="fixed"overposition="sticky"solves the problem.disableRestoreFocus, the equivalent of commenting the following line solves the issue.https://github.com/mui-org/material-ui/blob/a9fb4eacbb960831f7f8d02f62758d3e64cccb38/src/Modal/Modal.js#L194