Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

198
Visualizações
Material UI input field looking weird

enter image description here
Anyone knows why this is happening. I am using material UI. the default value and the label for the field are overlapping for some reason.

Here's the code for the rendering of the fields:

{formSchema.map((element, index) => (
                        <Grid key={element.name} className={classes.gridItems} item sm={6}>
                            {formInputRender(element, index)}
                        </Grid>
                    ))}

and this is the field in the forSchema array:

4:
dataType: "number"
defaultValue: null
mandatory: false
name: "Amount"
validation: {minLength: null, maxLength: null}
[[Prototype]]: Object

formInputRender function:

case 'number':
                return (
                    <TextFieldElement
                        name={formElement.name}
                        type="number"
                        required={formElement.mandatory}
                        label={formElement.name}
                        value={formik.values[formElement.name]}
                        onChange={formik.handleChange}
                        onBlur={blurHandler}
                        onKeyDown={(evt) => evt.key === 'e' && evt.preventDefault()}
                        error={errorHandler(formElement)}
                        helperText={errorHandlerText(formElement)}
                        className={classes.flexGrow}
                        InputProps={
                            apiFields.includes(formElement.name)
                                ? {
                                      endAdornment: (
                                          <InputAdornment position="end" style={{ outline: 'none' }}>
                                              {apiErrorHandler(formElement.name)}
                                          </InputAdornment>
                                      )
                                  }
                                : false
                        }
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

In your Material UI TextField, you can add InputLabelProps setting, I provide the code snippet you can try, hope this can help you.

<TextField InputLabelProps={{ shrink: true }} />

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda