Next.js Discord

Discord Forum

MUI: You have provided an out-of-range value `true` for the select component.

Answered
Swedish Lapphund posted this in #help-forum
Open in Discord
Swedish LapphundOP
s
Answered by Swedish Lapphund
nvm solved
View full answer

7 Replies

Swedish LapphundOP
 <Typography component="h1" variant="h5">
        Vul nu uw voorkeuren in!
      </Typography>
      <TextField
        label="Voorkeur Interview Type"
        select
        variant="outlined"
        margin="normal"
        fullWidth
        value={profileData.preferredInterviewType}
        onChange={(e) =>
          setProfileData({
            ...profileData,
            preferredInterviewType: e.target.value,
          })
        }
      >
        {getStandardInterviewOptions().map((option) => (
          <MenuItem key={option} value={option}>
            {option}
          </MenuItem>
        ))}
      </TextField>
export const getStandardInterviewOptions = () => [
  "Online portaal", "Telefoon gesprek", "In persoon"
]
  const [profileData, setProfileData] = useState({
    preferredInterviewType: "",
    preferredApproachType: "",
    commercialApproaches: false,
  });
im not really sure why I get this warning to begin with
Swedish LapphundOP
nvm solved
Answer