You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "text" function arg is typically treated as a string with the suggestion label, but it actually an object that provides both the label and value in text.label and text.value. Update the filter function to check both text.label and text.value instead of just text and you'll get the functionality you're looking for!
If this answers your question successfully, please close the issue or I'll close after a week of inactivity.
new Awesomplete(input, {
list: [
{ label: "Belarus", value: "BY" },
{ label: "China", value: "CN" },
{ label: "United States", value: "US" }
]
});
When I type CN there will be result China
The text was updated successfully, but these errors were encountered: