Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

197
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!