only suggest cities starting with query
This commit is contained in:
parent
b84ad8a5bb
commit
759d973b3a
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class LocationSearchService {
|
|||
}
|
||||
await this.citiesPromise;
|
||||
return this.cities.filter((city) => {
|
||||
return city.city.toLowerCase().includes(searchTerm.toLowerCase());
|
||||
return city.city.toLowerCase().startsWith(searchTerm.toLowerCase());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue