Open janoskaz opened 6 years ago
ng2-completer does not show data from remote source, when search string contains whitespaces.
ng2-completer
For example if my search string is "v nad v", the server returns this aray of objects:
[ { "obec": "Velká nad Veličkou [HO]", "kodcobe": 17858, "latitude": 48.882574814030896, "longitude": 17.5205920753957 }, { "obec": "Vrané nad Vltavou [PZ]", "kodcobe": 18531, "latitude": 49.9359315746974, "longitude": 14.3771236031672 } ]
But completer tells me that "No results found". If, however, I search for string without whitespaces, correct results are displayed.
My html:
`<ng2-completer
name="autocompleterCOBE" [dataService]="cobeRemoteData" [minSearchLength]="3" [placeholder]="" (selected)="onCOBESelected($event)" [inputClass]="'form-control'" [textSearching]="" [disableInput]="model.Foreign" [(ngModel)]="autocompleterText" required>
`
I am having the same issue. My dataSource has results, although if I type a space the results are not displayed. Has anybody found a solution to this?
ng2-completer
does not show data from remote source, when search string contains whitespaces.For example if my search string is "v nad v", the server returns this aray of objects:
[ { "obec": "Velká nad Veličkou [HO]", "kodcobe": 17858, "latitude": 48.882574814030896, "longitude": 17.5205920753957 }, { "obec": "Vrané nad Vltavou [PZ]", "kodcobe": 18531, "latitude": 49.9359315746974, "longitude": 14.3771236031672 } ]
But completer tells me that "No results found". If, however, I search for string without whitespaces, correct results are displayed.
My html:
`<ng2-completer
cobeCompleter
`