oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

[autoMatch] doesn't seem to do what its meant to do #221

Open slegaitis opened 7 years ago

slegaitis commented 7 years ago

I've autoMatch set to true but it doesn't seem to do what its intended to do.

                `<ng2-completer [(ngModel)]="cityFilter" [placeholder]="'Enter city'" [textNoResults]="'No Results Found'" [fillHighlighted]="true" [autoMatch]="true" [inputName]="'cityFilter'" [datasource]="cityList" [minSearchLength]="2" (blur)="filterByCity()"></ng2-completer>`

Is there anything else needed? It doesn't match the result or close the dropdown

oferh commented 7 years ago

autoMatch will only close the dropdown if the text exactly matches, can you provide better reproduction steps or even better a plunkr?