Next.js Discord

Discord Forum

MUI: controlled/uncontrolled state error

Answered
Swedish Lapphund posted this in #help-forum
Open in Discord
Swedish LapphundOP
      <Typography variant="h6" paragraph>
        Beperkingen
      </Typography>
      <Autocomplete
        multiple
        id="disabilities"
        options={getDisabilitiesOptions()}
        value={profileDisabilities}
        onChange={(_, selectedDisabilities: string[]) => {
          setProfileDisabilities(selectedDisabilities);
        }}
        disableCloseOnSelect
        renderInput={(params) => (
          <TextField {...params} label="Beperkingen" margin="normal" />
        )}
      />
Answered by Swedish Lapphund
@Ray Hi, apologies for the ping, could you help me?
View full answer

3 Replies

Swedish LapphundOP
https://pastebin.com/bWmi7HTr (whole code if needed)
Swedish LapphundOP
@Ray Hi, apologies for the ping, could you help me?
Answer