getItemInputValue({ item }) {
return item.name;
}
The getItemInputValue
function returns the value of the item. It lets you fill the search box with a new value whenever users select an item, allowing them to refine their query and retrieve more relevant results.
https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getiteminputvalue