I'm still fairly new to react and I have some struggles finding why my defaultValueAttributes doesn't display anything:
<Select
id="my_disabled_select"
name="my_disabled_select"
disabled
defaultValue={connectedUser.options[0]}
/>
I have tried to display the connectedUser.options[0] in an InputLabel tag and the value is defined !
Does anyone know why this happens and how can I fix this ?
You are missing the corresponding
MenuItemchild component so that theSelectknows what to render.Something like this should work:
See this example stackblitz