MUI: controlled/uncontrolled state error
Answered
Swedish Lapphund posted this in #help-forum
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" />
)}
/>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