[input] Fix layout shift with display: flex by oliviertassinari · Pull Request #43839 · mui/material-ui (original) (raw)

Fix #39539. A regression introduced in Chrome #26449 (comment) after #28070.

As an end-user, I was annoyed by #39539 (comment), the template doesn't feel great with a bug like this. It makes us look like amateurs.

You can test that is works on https://deploy-preview-43839--material-ui.netlify.app/experiments/base/autofill/.

Screen.Recording.2024-09-22.at.01.44.40.mov

and https://deploy-preview-43839--material-ui.netlify.app/material-ui/getting-started/templates/dashboard/.


TODO

SCR-20240922-cljq

The reproduction in #26449 uses:

To dive deeper, don't want to merge without clarity on this.