Skip to content
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

TextField label gets in the way with initial Chrome autofill value #362

Open
SoulDancer27 opened this issue Mar 27, 2023 · 0 comments
Open
Labels
question Further information is requested

Comments

@SoulDancer27
Copy link

It might be, that I just don't know how to do it properly, this issue appeared after i moved to mui-v5. If the value for the TextField component is taken from browser autofill value the label initially lays right on top of it covering the text. After i click on the form it moves to the top where it should be.

image
image

How should I address this issue?
The code looks like this:

  <Field
                  component={TextField}
                  name="name"
                  variant="outlined"
                  label={
                    <Typography variant="body1" color="textPrimary">
                      Логин
                    </Typography>
                  }
                  fullWidth
                  className={classes.textfield}
                />

Any help would be appreciated

@SoulDancer27 SoulDancer27 added the question Further information is requested label Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant