kopia lustrzana https://github.com/paraboul/mapchecking
Remove searchbox focus when hitting enter
rodzic
03339f4f0d
commit
6b74e0aa9f
|
@ -75,6 +75,8 @@
|
||||||
currentMap.setZoom(17);
|
currentMap.setZoom(17);
|
||||||
reset();
|
reset();
|
||||||
} else {
|
} else {
|
||||||
|
pacinput.value?.blur()
|
||||||
|
|
||||||
const sessionToken = new google.maps.places.AutocompleteSessionToken();
|
const sessionToken = new google.maps.places.AutocompleteSessionToken();
|
||||||
const rest = await service.getPlacePredictions({
|
const rest = await service.getPlacePredictions({
|
||||||
input: place.name!,
|
input: place.name!,
|
||||||
|
@ -92,6 +94,7 @@
|
||||||
currentMap.setCenter(res.geometry.location);
|
currentMap.setCenter(res.geometry.location);
|
||||||
currentMap.setZoom(17);
|
currentMap.setZoom(17);
|
||||||
reset();
|
reset();
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue