KostDM
KostDM

Reputation: 315

material-ui autocomplete custom value

I don't understand why autocomplete clearing selected value, but logic for select value work excelent? sandbox: sandbox example

Upvotes: 0

Views: 2090

Answers (1)

Chuck
Chuck

Reputation: 804

sir.

You should use inputValue for AutoComplete, not value property.

...
<Autocomplete
        inputValue={selectedValue ? selectedValue  : ''}
        options={optionsList}
...

Upvotes: 1

Related Questions