Answers for "material ui autocomple how make first option is selected as default"

0

material ui autocomple how make first option is selected as default

<Autocomplete
    id="id"
    options={Options}
    getOptionLabel={option => option.label}
    defaultValue={Options.find(v => v.label[0])} 
    renderInput={params => (
      <TextField {...params} label="label" variant="outlined" />
    )}
  />
Posted by: Guest on September-29-2020

Code answers related to "material ui autocomple how make first option is selected as default"

Browse Popular Code Answers by Language