Answer the question
In order to leave comments, you need to log in
How to fix search in Autocomplete Material UI React?
Hello. There is a standard Autocomplete component from React Material UI https://material-ui.com/components/autocomplete/#a... . An array with objects of the type is passed as a list: {id: 1, name: 'Secondary school №1', address: 'City of Ensk, st. Enskaya, 3'}. The name field is passed as a label (getOptionLabel={(option) => option.name}. The question is, when searching, I need a list not only by the name field (which happens by default) but also by the address field.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question