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
{{ message }}
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
where the search is performed on both Code and Name fields. When I enter a country code, for instance CA, I get several results with one highlighted (Canada) as best match. However, if I enter a country code which results in one unique entry (ex: MD), that entry is not displayed:
Entering CA:
Entering MD (should search by 'Code' field and find an entry)
Entering Moldova (the search was done with 'Name' field and works properly):
This persists for other type of data where only one entry is returned. I debugged the library and the entry is actually found (but not displayed):
Can we have a fix for that?
Thanks!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I use ng2-completer for the purposes of autocompleting the country field in my form. I use country code local data in the following format:
....
{ Code: 'BS', Name: 'Bahamas' },
{ Code: 'BH', Name: 'Bahrain' },
{ Code: 'BD', Name: 'Bangladesh' },
{ Code: 'BB', Name: 'Barbados' },
{ Code: 'BY', Name: 'Belarus' },
{ Code: 'BE', Name: 'Belgium' },
{ Code: 'BZ', Name: 'Belize' },
{ Code: 'BJ', Name: 'Benin' },
.....
The service call that I use the the following:
completerService.local(countryIsoCodes, 'Code,Name', 'Code').descriptionField('Name');
where the search is performed on both Code and Name fields. When I enter a country code, for instance CA, I get several results with one highlighted (Canada) as best match. However, if I enter a country code which results in one unique entry (ex: MD), that entry is not displayed:
Entering CA:
Entering MD (should search by 'Code' field and find an entry)
Entering Moldova (the search was done with 'Name' field and works properly):
This persists for other type of data where only one entry is returned. I debugged the library and the entry is actually found (but not displayed):
Can we have a fix for that?
Thanks!
The text was updated successfully, but these errors were encountered: