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

132
Views
Material UI Select not showing label correctly

I am trying to show my label for Select with material UI but it's showing option value instead of label...

here is the image of it:

enter image description here

here is my code base:

  const [inputFields, setInputFields] = useState([
    { id: uuidv4(), relationship: '', initiatorMessage: '', email: '' }]);

    inputFields?.map(inputField => {
      return (
      ...
      <FormControl
        className={classes.formControl}
        id="relationship-select"
        select
        name="relationship"
        inputprops={{
          classes: {
            root: classes.root,
          },
        }}
      >
        <Select
          name="relationship"
          label="relationship"
          value={inputField.relationship}
          onChange={e => handleChangeInput(inputField.id, e)}
          inputProps={{
            classes: {
              root: classes.root,
            },
          }}
        >
          {relationships.map(option => (
            <MenuItem key={option.value} value={option.value}>
              {option.value}
            </MenuItem>
          ))}
        </Select>
      </FormControl>
    })
  }

I want it to show relationship but it's showing my option value..

about 4 years ago · Juan Pablo Isaza
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!