-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[input] Fix layout shift with display: flex #43839
base: master
Are you sure you want to change the base?
Conversation
Netlify deploy previewhttps://deploy-preview-43839--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
b88a7b2
to
ce34ac8
Compare
ce34ac8
to
9257196
Compare
'@keyframes mui-auto-fill': {}, | ||
'@keyframes mui-auto-fill-cancel': {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not removing the InputGlobalStyles
entirely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the history of those lines, it was required for the autofill detection logic to work. But, ok, I didn't test if it's still true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this trick involving the dummy animation to expose a JS hook still works, it may be needed to fix #44135 (comment)
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
Regarding [InputBase] Fix autofill issue #28070 I'm not sure what happened but emotion doesn't removed empty keyframe with the version that we have today:
@emotion/styled@11.13.0
@emotion/react@11.13.3
The reproduction in #26449 uses:
To dive deeper, don't want to merge without clarity on this.