If also possible the search icon as well.
The highlighted one in this image:
this is my actual code, it works the exact same as the sandbox:
autocomplete({
container: "#autocomplete",
placeholder: "items",
insights: true,
openOnFocus: true,
getSources() {
return [
{
sourceId: "simpleItems",
getItems({ query }) {
const filteredItems = suppliers.filter((item) =>
item.name
.toLowerCase()
.startsWith(query.toLowerCase())
);
return Promise.resolve(filteredItems);
},
getItemInputValue: ({ item }) => item.name,
templates: {
item({ item }) {
return item.name;
},
},
},
];
},
});