Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working when full matched string found in autosuggest #373

Open
ittechy opened this issue Jan 4, 2019 · 1 comment
Open

Not working when full matched string found in autosuggest #373

ittechy opened this issue Jan 4, 2019 · 1 comment

Comments

@ittechy
Copy link

ittechy commented Jan 4, 2019

When we have full matched string hence it contains single result. So when we click on that full matched string from auto-suggest, it is not selecting that record hence not retrieving its data.

Example:

We have list of Cars => Volvo, Suzuki, BMW, Hyundai.
Created one auto-suggest for car and tried to search : Suzuki (which is fully matched string), it returns result with Suzuki but when we try to select that record from auto-suggest list, it displays string as 'undefined'.

This is what we have set in html file.
<input type="text" [min-chars]="3" auto-complete [(ngModel)]="CarName" name="CarName" [source]="autoSuggestCarName.bind(this)" [list-formatter]="carListFormatter" select-value-of="data" (valueChanged)="fillCarData($event)">

When we select fully matched record, 'fillCarData' method is called with $event : 'Suzuki' instead of json object.
Our code is working fine in all other scenarios except this fully matched one.

Please provide your help on this.
Thanks.

@ajay560
Copy link

ajay560 commented Apr 6, 2019

We are also facing the same issue. Will this issue be fixed. It's urgent for us.

@ittechy did you find any alternate/fix for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants