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
if you had a list with "Foo bar" and ""Foo boo" in it and you wanted to add "Foo" the typeahead provide no way to do this, as it has found suggestions, even though none match exactly.
you can change the search to look for exact match instead of look for terms that contain the search value such as private async Task<IEnumerable<string>> SearchItems(string searchText) => Task.FromResult(Items.Where(x => x.Name.ToLower().Equals(searchText.ToLower())).ToList());
even though this would show the notfoundtemplate, you would not get any suggestions unless they were exactly the same as the search text which would negate the purpose of the suggestions
I can easily write code to add the item to the collection, however I can access the methods to close the results template and select the item added as the methods built in are all private.
Is there a workaround so that if the exact match is not found it will show display a hybrid view of the notfoundtemplate and the resulttemplate so you can either choose to add it as a new item or select one of the existing options
The text was updated successfully, but these errors were encountered:
ran into a edge case when adding new items.
if you had a list with "Foo bar" and ""Foo boo" in it and you wanted to add "Foo" the typeahead provide no way to do this, as it has found suggestions, even though none match exactly.
you can change the search to look for exact match instead of look for terms that contain the search value such as
private async Task<IEnumerable<string>> SearchItems(string searchText) => Task.FromResult(Items.Where(x => x.Name.ToLower().Equals(searchText.ToLower())).ToList());
even though this would show the notfoundtemplate, you would not get any suggestions unless they were exactly the same as the search text which would negate the purpose of the suggestions
I can easily write code to add the item to the collection, however I can access the methods to close the results template and select the item added as the methods built in are all private.
Is there a workaround so that if the exact match is not found it will show display a hybrid view of the notfoundtemplate and the resulttemplate so you can either choose to add it as a new item or select one of the existing options
The text was updated successfully, but these errors were encountered: